Wednesday, September 16, 2009

Turn off caching in Liferay (development mode)

Hi All

Long time no post. But here is a little snippit of a trick I discovered but had to do some serious google searches to find.

To turn off the liferay caching in Liferay for when you are developing all you have to do is this:

Find this file:

$LIFERAY_HOME/tomcat-6.0.18/webapps/ROOT/WEB-INF/classes/portal-developer.properties

Can copy it and rename it to:

$LIFERAY_HOME/tomcat-6.0.18/webapps/ROOT/WEB-INF/classes/portal-ext.properties

This will disable all caching in Liferay such as css, javascript and vm templates.

Hope this helps.