Dear Wiki user, You have subscribed to a wiki page or wiki category on "Turbine Wiki" for change notification.
The "Turbine4/Turbine4.0M1/Migrate233" page has been changed by ThomasVandahl: http://wiki.apache.org/turbine/Turbine4/Turbine4.0M1/Migrate233?action=diff&rev1=6&rev2=7 Comment: Added GlobalCacheService charsets="WEB-INF/conf/charsets.properties" /> }}} + === GlobalCacheService === + + The !TurbineGlobalCacheService has been replaced with the [[http://turbine.apache.org/fulcrum/fulcrum-cache/|Fulcrum Cache]] counterpart. The following example shows the default configuration of the ''!GlobalCacheService'' before and after the migration. For details of the configuration options available see the [[http://turbine.apache.org/fulcrum/fulcrum-cache/|Fulcrum Cache Site]]. Note that the cache check frequency is in seconds now, rather than milliseconds. + + `TurbineResources.properties`: + + {{{ + services.GlobalCacheService.classname=org.apache.turbine.services.cache.TurbineGlobalCacheService + + # ------------------------------------------------------------------- + # + # C A C H E S E R V I C E + # + # ------------------------------------------------------------------- + + # Interval at which the cache will be checked. The default is + # 5000ms or 5 seconds. + + services.GlobalCacheService.cache.check.frequency = 5000 + }}} + + `roleConfiguration.xml`: + + {{{#!xml + <role + name="org.apache.fulcrum.cache.GlobalCacheService" + shorthand="cache" + default-class="org.apache.fulcrum.cache.impl.DefaultGlobalCacheService"/> + }}} + + `componentConfiguration.xml`: + + {{{#!xml + <cache cacheInitialSize="20" cacheCheckFrequency="5"/> + }}} + --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
