Message Boards
Liferay 6.2 Theme with JRebel
Muhammed Shakir AK Misarwala, modified 10 Years ago.
Liferay 6.2 Theme with JRebel
Junior Member Posts: 36 Join Date: 2/26/09 Recent Posts
Until 6.1.x the property which decided that the velocity templates will be reloaded each time the page is visited was – velocity.engine.resource.manager.cache.enabled=false . From Liferay 6.2 onwards this property has changed to : velocity.engine.resource.modification.check.interval=0 (0 means each time it will reload the template, -1 would mean cache it ones and keep it indefinitely and > 1 for .e.g. 60 would mean, cache the template for 60 milliseconds). In development mode, keeping velocity.engine.resource.modification.check.interval=0
is extremely important for themes to reflect changes you do in .vm files and see the effect of your change without redeploying the theme. By the way, I am using JRebel and it did not work with themes because of the above property.
Once I made velocity.engine.resource.modification.check.interval=0
(default was 60) I could see the changes immediately after making changes
is extremely important for themes to reflect changes you do in .vm files and see the effect of your change without redeploying the theme. By the way, I am using JRebel and it did not work with themes because of the above property.
Once I made velocity.engine.resource.modification.check.interval=0
(default was 60) I could see the changes immediately after making changes
Andres Luuk, modified 10 Years ago.
RE: Liferay 6.2 Theme with JRebel
New Member Posts: 11 Join Date: 12/19/11 Recent Posts
This seems like a reasonable suggestion for a JRebel user.
On JRebels side we don't disable Liferay caches, we relay on the Liferay development mode todo it.
On JRebels side we don't disable Liferay caches, we relay on the Liferay development mode todo it.
Dmitry Sergeev, modified 10 Years ago.
RE: Liferay 6.2 Theme with JRebel
Junior Member Posts: 34 Join Date: 11/8/11 Recent Posts
Thank you so much! I had spent 3 evenings trying to get theme working with jrebel untill it appeared to me that first time it updates successfully.