Kohei Nozaki's blog 

Disabling Roller cache for development


Posted on Friday Feb 27, 2015 at 09:43PM in Roller


When I playing with Roller source code, Roller’s caching mechanism is not comfortable because my changes are not affected until I redeploy entire application. it destroys benefit of using JRebel. so I disabled Roller’s caching mechanism with following definition in roller.properties. it would work with roller-custom.properties too.

cache.sitewide.enabled=false
cache.weblogpage.enabled=false
cache.weblogfeed.enabled=false
cache.planet.enabled=false
cache.salt.enabled=false

Also you need to disable 2nd level cache of EclipseLink. put following definition to persistence.xml.

<property name="eclipselink.cache.shared.default" value="false"/>

<shared-cache-mode>NONE</shared-cache-mode>

Velocity cache too. configuration is available at /app/src/main/webapp/WEB-INF/velocity.properties:

theme.resource.loader.cache=false
roller.resource.loader.cache=false
class.resource.loader.cache=false
webapp.resource.loader.cache=false

Container’s JSP cache too. for WildFly see /roller/kyle/entry/exploded-deployment-for-wildfly-on