留言板
Caching problem
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
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
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:
https://github.com/liferay/liferay-portal/blob/6.1.2-ga3/portal-impl/src/portal.properties#L931-935
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