Pre-rendering a site

 

+

Search Tips   |   Advanced Search

 

The CacherModule is used to pre-render a site. It can be configured to run automatically or manually.

 

Automatically running the CacherModule

The CacherModule can be configured to run when the WCM application is loaded by specifying the following property in the WCMConfigService.properties file.

    connect.businesslogic.module.cacher.autoload=true 

The CacherModule will then run according to the settings in the WCMConfigService.properties file

 

Manually running the CacherModule

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

http://host_name:port/wps/wcm/connect?MOD=Cacher&SRV=cacheSite&Site=site_name&library=library_name

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

http://host_name:port/wps/wcm/connect/library_name/site_name/site_area_name/content?MOD=Cacher

In the URLs above for pre-rendering sites and individual pages, the library_name parameter is optional. If the library is specified, the pre-renderer looks for the site in that library. If no library is specified, the default library is used, as specified by the defaultLibrary property in the WCMConfigService.properties file.

 

CacherModule URL SRV= options

Service Required Parameters Optional Parameters
SRV=cacheSite

Initializes prerendering for the given site with a delay as given (in seconds).

SITE=<sitename> DELAY=<delay>

LIBRARY=<library>

If no library is specified, the default library is used, as specified by the defaultLibrary property in the WCMConfigService.properties file

SRV=flushSiteCache

Clears (flushes) the given site cache. Deletes all pre-rendered data.

SITE=<sitename>

LIBRARY=<library>

If no library is specified, the default library is used, as specified by the defaultLibrary property in the WCMConfigService.properties file

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