Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to turn off the caching in Velocity Engine system?

 
Guy Roth
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Spring's Velocity Engine (org.springframework.ui.velocity.VelocityEngineFactoryBean)
The problem is that by default the velocity engine is caching the macros that are defined by this engine so in order to refresh the macro definitions I have to restart the Velocity Engine
Is there any way to disable the caching of the macro?

I tried this: velocityProperties.put("file.resource.loader.cache","false");
but it didn't help.
I also so this link that didn't solve this problem: http://forum.springsource.org/showthread.php?t=16740

Anyone?
 
Guy Roth
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to update my question:
I tried the following:

and also to perform

before every time that I do engine.evaluate()...
But the Velocity engine still after all this remember that previous definitions of its macro and doesn't replace them!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic