Clear content cached across the clusterClear content cached across the clusterhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=128917912024-03-29T01:07:52Z2024-03-29T01:07:52ZRE: Clear content cached across the clusterVishnu S Kumarhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1124274202019-02-21T19:31:10Z2019-02-21T19:31:10Z<blockquote>Mathieu HicauberHi, <br /><br />Exactly the same problem here : journal article is not updated on my LR node #2 until I hit the "clear content cached accross the cluster" button. So 'I'm really happy you found a solution <img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" ><br /><br />I'm using jgroups to handle nodes communication - is this kind of network communication compliant with your settings ?<br /></blockquote>I got this same issue in the non clustered environment as well. Our related assets in a web content on a page won't get updated unless we do a clear cache or turn off caching in the templates.Vishnu S Kumar2019-02-21T19:31:10ZRE: Clear content cached across the clusterMathieu Hicauberhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=139378812012-05-15T07:41:17Z2012-05-15T07:41:17ZHi, <br /><br />Exactly the same problem here : journal article is not updated on my LR node #2 until I hit the "clear content cached accross the cluster" button. So 'I'm really happy you found a solution <img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" ><br /><br />I'm using jgroups to handle nodes communication - is this kind of network communication compliant with your settings ?Mathieu Hicauber2012-05-15T07:41:17ZRE: Clear content cached across the clusterHitoshi Ozawahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=131476152012-03-24T08:45:15Z2012-03-24T08:45:15Z<blockquote>but i still don't know what the wrong with the default value ??</blockquote><br /><br />Liferay's default is just for a standalone configuration because most small users aren't clustering.Hitoshi Ozawa2012-03-24T08:45:15ZRE: Clear content cached across the clusterFateh Alchhabihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=131474482012-03-24T07:06:14Z2012-03-24T07:06:14Zi solve the problem by adding the folloing to my portal-ext and adding with <strong>myehcache</strong> folder to the location /liferay-6.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/classes i include the file in the attachment <br /><br />but i still don't know what the wrong with the default value ??<br /><br /><br /><blockquote><br /><br />##<br />## Hibernate<br />##<br /> hibernate.configs=\<br /> META-INF/mail-hbm.xml,\<br /> META-INF/portal-hbm.xml,\<br /> META-INF/ext-hbm.xml<br /> <br /> hibernate.cache.provider_class=com.liferay.portal.dao.orm.hibernate.EhCacheProvider<br /> <br /> net.sf.ehcache.configurationResourceName=/myehcache/ehcache/hibernate.xml<br /> <br /> net.sf.ehcache.configurationResourceName.peerProviderProperties=peerDiscovery=automatic,multicastGroupAddress=${multicast.group.address["hibernate"]},multicastGroupPort=${multicast.group.port["hibernate"]},timeToLive=1<br /> <br /> hibernate.cache.use_query_cache=true<br /> hibernate.cache.use_second_level_cache=true<br /> hibernate.cache.use_minimal_puts=true<br /> hibernate.cache.use_structured_entries=false<br /> <br /> hibernate.jdbc.batch_size=20<br /> <br /> hibernate.jdbc.use_scrollable_resultset=true<br /> hibernate.bytecode.use_reflection_optimizer=true<br /> hibernate.show_sql=false<br /><br /> hibernate.query.factory_class=org.hibernate.hql.classic.ClassicQueryTranslatorFactory<br /><br /> hibernate.generate_statistics=false<br /><br /><br /> <br /><br />##<br />## Ehcache<br />##<br /> ehcache.single.vm.config.location=/myehcache/ehcache/liferay-single-vm.xml<br /> ehcache.multi.vm.config.location=/myehcache/ehcache/liferay-multi-vm.xml<br /> ehcache.multi.vm.config.location=/myehcache/ehcache/liferay-multi-vm-clustered.xml<br /> <br /> ehcache.multi.vm.config.location.peerProviderProperties=peerDiscovery=automatic,multicastGroupAddress=${multicast.group.address["multi-vm"]},multicastGroupPort=${multicast.group.port["multi-vm"]},timeToLive=1<br /><br /> ehcache.bootstrap.cache.loader.factory=net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory<br /> <br /> ehcache.cache.event.listener.factory=net.sf.ehcache.distribution.RMICacheReplicatorFactory<br /><br /> ehcache.cache.manager.peer.provider.factory=net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory<br /><br /> ehcache.portal.cache.manager.jmx.enabled=true<br /><br /> ehcache.blocking.cache.allowed=true<br /><br /> ehcache.statistics.enabled=false<br /><br /><br /><br /></blockquote>Fateh Alchhabi2012-03-24T07:06:14ZRE: Clear content cached across the clusterFateh Alchhabihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=131474412012-03-24T06:57:53Z2012-03-24T06:57:53Zi clustered liferay-6.5 with Hardware F5 Load BalancerFateh Alchhabi2012-03-24T06:57:53ZRE: Clear content cached across the clusterHitoshi Ozawahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=130520562012-03-19T08:12:57Z2012-03-19T08:12:57Z<blockquote>it works only for EE Edition right ? </blockquote><br /><br />It works for CE too.<br /><br />You've mentioned that you've setup a Liferay in cluster? How did you set it up? Did you cluster your application server (e.g. JBoss cluster)? If you did, you may run into some trouble.<br /><br />Liferay tries to get data from the cache before going to the database. So, you'll have to share the cache by activating clusterlink.<br /><br />If you activate Clusterlink, be sure to check that the data is not being written to the 2 Masters separately because it may result in duplicate entries.Hitoshi Ozawa2012-03-19T08:12:57ZRE: Clear content cached across the clusterFateh Alchhabihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=130524922012-03-19T07:39:52Z2012-03-19T07:39:52Zthanks for replay but as i know the <blockquote>cluster.link </blockquote> it works only for EE Edition right ?Fateh Alchhabi2012-03-19T07:39:52ZRE: Clear content cached across the clusterAmos Fonghttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=129315702012-03-12T08:27:05Z2012-03-12T08:27:05Z<html><head></head><body>Looks like you're using default multicast groups/ports then?<br><pre><code> multicast.group.address*...
multicast.group.port*...
multicast.group.address["multi-vm"]=239.255.0.5
multicast.group.port["multi-vm"]=23305</code></pre><br><br>Can you make sure your two nodes can communicate through these addresses/ports<br><br>I believe you also want to turn on cluster link too. I'm not sure all the things affected by it, but I know managing scheduled jobs is part of it.<br><br><pre><code> #
# Set this to true to enable the cluster link. This is required if you want
# to cluster indexing and other features that depend the cluster link.
#
cluster.link.enabled=false</code></pre></body></html>Amos Fong2012-03-12T08:27:05ZClear content cached across the clusterFateh Alchhabihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=128917902012-03-08T15:25:44Z2012-03-08T15:25:44Zhi all <br />i have two clustered liferay 6.5 servers ,two database server Master/Master replication relationship & have solr Server <br /><br />when i add or modify any journal articles i can't see the changes on the next server till i go to control panel >> Server administration >> and execute the "Clear content cached across the cluster."<br /><br /><strong>and this my portal-ext.properties is </strong><br /><br /><blockquote><br /><br />jdbc.default.driverClassName=com.mysql.jdbc.Driver<br />jdbc.default.url=jdbc:mysql://xxx.xxx.xxx.122:3306/tabuk_db?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false<br />jdbc.default.username=user_a<br />jdbc.default.password=1234a5678<br /><br />jdbc.one.driverClassName=com.mysql.jdbc.Driver<br />jdbc.one.url=jdbc:mysql://xxx.xxx.xxx.119:3306/tabuk_db?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false<br />jdbc.one.username=user_a<br />jdbc.one.password=1234a5678<br /><br />jdbc.two.driverClassName=com.mysql.jdbc.Driver<br />jdbc.two.url=jdbc:mysql://xxx.xxx.xxx.122:3306/tabuk_db?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false<br />jdbc.two.username=user_a<br />jdbc.two.password=1234a5678<br /><br /><br /><br />shard.available.names=default,one,two<br />shard.selector=com.liferay.portal.dao.shard.RoundRobinShardSelector<br /><br /> spring.configs=\<br /> META-INF/base-spring.xml,\<br /> \<br /> META-INF/hibernate-spring.xml,\<br /> META-INF/infrastructure-spring.xml,\<br /> META-INF/management-spring.xml,\<br /> \<br /> META-INF/util-spring.xml,\<br /> \<br /> META-INF/jpa-spring.xml,\<br /> \<br /> META-INF/audit-spring.xml,\<br /> META-INF/cluster-spring.xml,\<br /> META-INF/editor-spring.xml,\<br /> META-INF/jcr-spring.xml,\<br /> META-INF/ldap-spring.xml,\<br /> META-INF/messaging-core-spring.xml,\<br /> META-INF/messaging-misc-spring.xml,\<br /> META-INF/poller-spring.xml,\<br /> META-INF/rules-spring.xml,\<br /> META-INF/scheduler-spring.xml,\<br /> META-INF/scripting-spring.xml,\<br /> META-INF/search-spring.xml,\<br /> META-INF/workflow-spring.xml,\<br /> \<br /> META-INF/counter-spring.xml,\<br /> META-INF/document-library-spring.xml,\<br /> META-INF/mail-spring.xml,\<br /> META-INF/portal-spring.xml,\<br /> META-INF/portlet-container-spring.xml,\<br /> \<br /> #META-INF/dynamic-data-source-spring.xml,\<br /> META-INF/shard-data-source-spring.xml,\<br /> #META-INF/memcached-spring.xml,\<br /> #META-INF/monitoring-spring.xml,\<br /> \<br /> META-INF/ext-spring.xml<br /> #,\<br /> #META-INF/ext-jotm.xml<br /> <br /><br /># SOLR config<br />solr.server.url=http://xxx.xxx.xxx.121:8983/solr<br /><br /><br />jcr.initialize.on.startup=true<br />jcr.workspace.name=liferay<br />jcr.node.documentlibrary=documentlibrary<br />jcr.jackrabbit.repository.root=${liferay.home}/data/jackrabbit<br />jcr.jackrabbit.config.file.path=${jcr.jackrabbit.repository.root}/repository.xml<br />jcr.jackrabbit.repository.home=${jcr.jackrabbit.repository.root}/home<br />jcr.jackrabbit.credentials.username=none<br />jcr.jackrabbit.credentials.password=none <br /><br />dl.hook.impl=com.liferay.documentlibrary.util.JCRHook<br />image.hook.impl=com.liferay.portal.image.DatabaseHook<br />dl.hook.s3.access.key=<br />dl.hook.s3.secret.key=<br />dl.hook.s3.bucket.name=<br />dl.file.max.size=0<br />dl.file.extensions=*<br />dl.comparable.file.extensions=.css,.js,.htm,.html,.txt,.xml<br />dl.layouts.sync.enabled=false<br />dl.layouts.sync.private.folder=Pages - Private<br />dl.layouts.sync.public.folder=Pages - Public<br />dl.file.entry.comments.enabled=true<br />dl.file.rank.enabled=true<br /><br /><br />## Quartz<br />org.quartz.jobStore.isClustered=true<br /><br /><br