• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

How to turn off the caching in Velocity Engine system?

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic