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.

3 comments:

mika said...

The proper way would be actually adding -Dexternal-properties=portal-developer.properties to your JAVA_OPTS. Detailed instructions can be found from here: http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Liferay+Developer+Mode

Anonymous said...

Hi, guys.

Many thanks for that post. Its worked even on Liferay 6.0.5.

custom writings said...

oh.. here it is!! I searched for this method for a long time. glad that found it here. All I need is replace file - briliant