templates path not reloading on clearTemplateCache()

Matthew Anderson <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
We are having an issue that when we clear the template cache
using clearTemplateCache(), we dont get the new templates.  Here is our
settup.

We have a symlinked path to our templates.
path to templates that we load: /mypath/templates
This path is a symlink pointing to the real hard linked path for the
templates
ie: v1 of templates path is /local/templates/v1
v2 of templates path os /local/templates/v2

Reproduce steps:
/mypath/templates points to /local/templates/v1
We deploy new templates to v2 path, and flip the symlink /mypath/templates
to now point to /local/templates/v2

Every five minutes, our service checks to see if the canonical path has
changed for the template dir path, and if it has,  then we call
clearTemplateCache()

However, the templates from v1 path are still getting picked up. Is there a
way to force freemarker to reload the symlink path?  It seems as if there is
a handle somewhere to the old symlinked directory.

thanks,
matthew

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.