Showing posts with label macro. Show all posts
Showing posts with label macro. Show all posts

Thursday, October 17, 2013

Disable velocimacro caching in liferay

Liferay developer face VM macro caching problem in development stage. Velocity use velocimacro.library.autoreload property to handle it. You can disable velocimacro caching in Liferay by adding following properties:

Liferay 6.2 : 

You need to update "velocity.engine.resource.modification.check.interval" property in portal-ext.properties

       #
       # Set this to 0 to load template source every time. Set this to a number
       # less than 0 to load templates once and cache it indefinitely. Set this to
       # a number greater than 0 to load templates and cache it for the period of
       # time specified by that number in milliseconds seconds.
       #

       velocity.engine.resource.modification.check.interval=0



Liferay 6.1 :


You need to update "velocity.engine.resource.manager.cache.enabled=false" property in portal-ext.properties

      velocity.engine.resource.manager.cache.enabled=false


Note: This feature is intended for development, not for production.