Changes to cms page content requires restart of store
Posted: Sat Mar 03, 2012 7:46 am
by om.singh
I made some changed to the content page using cms admin, and its shows in the preview well. The I publish the content to live, using the approver sandbox tab. They tring to view the same page does not show the content. If I restart my store(front end application) the new content shows up.
Do we need to refresh any cache assciated to the publish.
Re: Changes to cms page content requires restart of store
Posted: Mon Mar 05, 2012 3:25 pm
by bpolster
Om,
We've made some updates to this in version 1.6 that will improve the content caching for most circumstances. In addition to it just working in a single VM, we've also provide JMS listeners that can be configured to flush the cache Take a look at JMSArchivedPagePublisher and JMSArchivedPageSubscriber components. If you wire these up with a valid JMS implementation, then content pushes will be near-real time in a production environment.
Without wiring these up, the content cache time is controlled by the following ehcache configurations that you can override in your cache configuration for quicker timeouts.
<!-- Page Cache - 1 hour cache -->
<cache name="cmsPageCache"
maxElementsInMemory="1000"
eternal="false"
overflowToDisk="true"
timeToLiveSeconds="3600"/>
<!-- Structured Content Cache - 1 hour cache -->
<cache name="cmsStructuredContentCache"
maxElementsInMemory="5000"
eternal="false"
overflowToDisk="true"
timeToLiveSeconds="3600"/>