Run the CacherModule

 

+
Search Tips   |   Advanced Search

 

Automatically run the CacherModule

The CacherModule can be configured to run when the Web Content Management application is loaded by adding "autoLoad=true" to the Cacher item in the Module section of connect.cfg.

<Cacher class=com.aptrix.cacher.CacherModule remoteAccess=true autoLoad=true />

The CacherModule will then run as per the settings set in the Cacher section of the ModuleConfig section of connect.cfg.

 

Manually run the CacherModule

Site caching can be also be initiated via the URL interface. For example:

http://[HOST]:[PORT]/wps/wcm/connect?MOD=Cacher&SRV=cacheSite&Site=[SITENAME]

You can also pre-render individual pages using the following URL:

http://[HOST]:[PORT]/wps/wcm/connect/[SiteName]/[SiteAreaName]/[Content]?MOD=Cacher

You will be prompted to enter a User Name and Password when manually running the CacherModule. Use the CacherAdmin user when manually running the CacherModule via the URL interface. The password is equal to the Password value= parameter in the ModuleConfig section of connect.cfg

Ensure the "Cacher" element in the Dependent Modules section of connect.cfg is uncommented.

Non-ascii characters can not be used in the query string section of URLs. For this reason, it is best not to name WCM items using Non-ascii characters if you plan to use URLs to call WCM items.

 

CacherModule URL SRV= options

Service Description Required Parameters Optional Parameters
SRV=cacheSite Initializes Prerendering for the given site with a delay as given (in seconds). SITE=<sitename> DELAY=<delay>
SRV=flushSiteCache Clears (flushes) the given site cache. Deletes all pre-rendered data. SITE=<sitename>  
SRV=flushPageCache Flushes the page from the site cache. The site and page are determined from the request URL.    
No SRV specified The CacherModule attempts to retrieve the given page from the cache.    

Parent topic: Pre-rendered Sites.


IBM Workplace Web Content Management - V5.1.0.1

 

Workplace Web Content Management is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.