Disabling the cache for entity and also finder
In Liferay sometimes its need to disable cache, here it is how its works,
Suppose if we need to disable cache for BlogsEntry entity
Put following properties in portal-ext.properties
1.value.object.entity.cache.enabled.com.liferay.portlet.blogs.model.BlogsEntry = false;
For clarity look at the class"BlogsEntryModelImpl.java"
Similarly we can disable cache for finder of blogsEntry is as ,
2. value.object.finder.cache.enabled.com.liferay.portlet.blogs.model.BlogsEntry = false;
Comments
Post a Comment