留言板

Caching problem

Mohammad Ghoreishi,修改在9 年前。

Caching problem

New Member 帖子: 5 加入日期: 13-7-14 最近的帖子
Hi all
I'm using liferay 6.1 ce on jboss application server. we have 2 instance on 2 diffrent servers that had initialized by one Database.
For some issues we didn't cluster them.
Problem come Through when someone on an instance add a web content neverthless database are unique , the other doesn't see the web content.
I thought there is some issues in caching. How I Can disable caching for web contents.?

With Regards
Mohammad Ghoreishi
thumbnail
Juan Gonzalez,修改在9 年前。

RE: Caching problem

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
If you don't want to configure your Liferay cluster, then you should disable caching.

But if you do that, you will notice how performance decreases, so maybe isn't a good idea.

Anyway, try to set these two properties to false:

 #
    # Uncomment these properties to disable Hibernate caching.
    #
    #hibernate.cache.use_query_cache=false
    #hibernate.cache.use_second_level_cache=false


https://github.com/liferay/liferay-portal/blob/6.1.2-ga3/portal-impl/src/portal.properties#L931-935