Ok after looking at Provider.pm I can see how I might be able to subclass it
and add a delete function to delete an item from the cache.
Assuming the slot existed, would this work to remove the slot from the
memory cache?
my $slot = $self->{ LOOKUP }->{ $name };
# remove name lookup for old node
delete $self->{ LOOKUP }->{ $slot->[ NAME ] };
# undef the template page
$self->{ LOOKUP }->{ $name } = undef;
And to call it would something like this work?
$context = $tt->context;
$providers = $context->{ PREFIX_MAP }->{ default };
foreach my $provider (@$providers) {
($result) = $provider->delete($template);
}
----- Original Message -----
From: "Chris Ochs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 10, 2004 1:44 PM
Subject: [Templates] Deleting templates from the memory cache
>
> Is there a way to delete specific templates from the memory and/or file
> cache?
> Chris
>
>
> _______________________________________________
> templates mailing list
> [EMAIL PROTECTED]
> http://lists.template-toolkit.org/mailman/listinfo/templates
>
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates