Project

General

Profile

Feature #916

Cache invalidation for templates loaded from file

Added by Elmer de Looff about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Elmer de Looff
Category:
TemplateParser
Target version:
Start date:
2012-07-19
Due date:
% Done:

100%

Estimated time:
Spent time:

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 264:c30f4f5b7b93 (diff)
Added by Elmer de Looff about 7 years ago

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.

Revision 265:198b3dd109a4 (diff)
Added by Elmer de Looff about 7 years ago

PageMaker error templates should be using the new FileTemplate class. This refs #916

History

#1 Updated by Elmer de Looff about 7 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 70

Applied in changeset c30f4f5b7b93.

#2 Updated by Elmer de Looff about 7 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.

Also available in: Atom PDF