caching - Share secondary cache accross different applications -


we using cms secondary cache enabled:

application.cfc

<cfset this.ormsettings.secondarycacheenabled = true /> <cfset this.ormsettings.cacheprovider = "ehcache" /> <cfset this.ormsettings.cacheconfig="ehcache.xml" /> 

ehcache.xml

<ehcache>     <diskstore path="java.io.tmpdir"/>     <defaultcache         maxelementsinmemory="10000"         eternal="true"         overflowtodisk="true"         maxelementsondisk="10000000"         diskpersistent="true"         diskexpirythreadintervalseconds="120"         memorystoreevictionpolicy="lru"         /> </ehcache> 

the entities set cacheuse="transactional" <cfcomponent persistent="true" entityname="news" table="mews" cacheuse="transactional">

saving article in cms works great , instantly reflects changes after saving.

one of sites managed cms should share cache cms. otherwise application reflects changes after timeout value set in site's ehcache.xml:

<ehcache>     <diskstore path="java.io.tmpdir"/>     <defaultcache         maxelementsinmemory="10000"         eternal="false"         timetoidleseconds="1800"         timetoliveseconds="1800"         overflowtodisk="true"         maxelementsondisk="10000000"         diskpersistent="true"         diskexpirythreadintervalseconds="120"         memorystoreevictionpolicy="lru"         /> </ehcache> 

is possible share cache between 2 different applications? possible configure in 2 application.cfc's?


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -