I have a question and maybe a proposition.  In Provider.pm _fetch_path if a
template is found in the memory cache, no check is done to see if the
template itself is still on disk.  Especially in a hosted environment this
is a potential problem because you essentially cannot delete a template page
without restarting the webserver.

At first I set out to just add a delete function to Provider to delete a
single template from the cache, but templates are cached per process so that
didn't work.
Could a runtime directive be added that controls this behavior?  I
subclassed _fetch_provider myself to have it do a stat based on an
enviroment variable that I can set for individual <Location> or
<Virtualhost> directives.  Works for me but I'm thinking maybe this should
just be a core feature?

Chris







_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to