Feature #916
Cache invalidation for templates loaded from file
Status:
Closed
Priority:
Normal
Assignee:
Elmer de Looff
Category:
TemplateParser
Target version:
Description
TemplateParser should check the modification time of a file when using the template. This ensures that when templates are updated, this is automatically reflected in the output, and does not require a server restart/reload.
This should work automatically for templates that are loaded from file, but should obviously not affect other templates.
Associated revisions
Revision 265:198b3dd109a4
(diff)
PageMaker error templates should be using the new FileTemplate class. This refs #916
History
#1 Updated by Elmer de Looff over 12 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 70
Applied in changeset c30f4f5b7b93.
#2 Updated by Elmer de Looff over 12 years ago
- Status changed from Resolved to Closed
- % Done changed from 70 to 100
An implementation has been provided and tests are added. Rolled out to production for Lintme, uWeb-framework and Underdark websites.
Added FileTemplate (with tests) class that provides autoamatic reloading of files when they have been changed on disk. This works for 'main' templates as well as inlined templates. This resolves #916.