Menu

#59 force reloading of a particular template

undecided
closed-fixed
nobody
None
5
2015-08-26
2008-05-22
Anonymous
No

We use freemarker templates with struts2. We have a good load of 20-30 requests/server/sec.

We dont want to have small template reloading interval as it is signicantly loading our servers.Our current delay is 60000 seconds.

We operate in financial domain and cannot wait hours to get our live issues fixed.Curerntly we are forced to restart our servers everytime we fix a issue causing significant losses to our business.

When we change a template and deploy it, we should be able trigger its reload.

At this hour we are still trying to clear the entire cache and see.But we are wary, all our requests (30 requests/sec) will force the engines to reload templates at the same time which might cause contention and result in poor performance for our users.

It would just be fantastic if i can force TemplateCache to reload the required template.
It should be pretty easy from your end to provide this, as i do not see issues with this.You can call your loadTemplate and then cache it.Pardon, if it is not this easy:).

Hope this feature request will be considered as it means a lot of money for us, and for many similar companies.

Thanks,
Teja

Discussion

  • Dániel Dékány

    This was solved since then (long ago): Configuration.removeTemplateFromCache(...)

     
  • Dániel Dékány

    • status: open --> closed-fixed
    • Group: --> undecided
     

Log in to post a comment.