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

Popular posts from this blog

Theme display in javascript

How to know which liferay version we are using

Viewing the SQL Query in liferay : debugging the SQL Query in Hibernate