Pre-render methods
You can configure pre-rendering to run automatically, or you can manually initiate it using a URL.
Note
To pre-render a website, you must have administrator access to the library that contains the site area.
- Automatic pre-rendering: Configure the cacher settings specified in the
WCM WCMConfigServiceservice. -
Manual pre-rendering for a website: Initiate pre-rendering through the URL interface. For example:
http://host_name:port\_number/wps/wcm/connect?MOD=Cacher&SRV=cacheSite&sitearea=sitearea\_name&library=library\_nameService Description Required Parameters Optional Parameters SRV=cacheSiteInitializes pre-rendering for the site area with a specified delay(in seconds). sitearea=site area nameDELAY=<delay>LIBRARY=<library>
Note: If no library is specified, the default library is used, as specified by thedefaultLibraryproperty in theWCM WCMConfigServiceservice.SRV=cacheSiteExtendedInitializes pre-rendering for the site area with a specified delay (in seconds). Passes the ServletContextto be used during processing. TheServletContextis required to pre-render JSP components and might be needed in other processing.
The associated user must be an administrative user.sitearea=site area nameDELAY=<delay>LIBRARY=<library>
Note: If no library is specified, the default library is used, as specified by thedefaultLibraryproperty in theWCM WCMConfigServiceservice.SRV=flushSiteCacheClears (flushes) the site cache and deletes all pre-rendered data. sitearea=site area nameLIBRARY=<library>
Note: If no library is specified, the default library is used, as specified by thedefaultLibraryproperty in theWCM WCMConfigServiceservice.SRV=flushPageCacheFlushes the page from the site cache. The site area and page are determined from the request URL. No SRVspecifiedThe CacherModuleattempts to retrieve the page from the cache. -
Manual pre-rendering for individual content items: Use the following URL structure:
http://host_name:port_number/wps/wcm/connect/library_name/site_area_name/content?MOD=CacherNote
Before you can pre-render an individual content item, the site area specified in the URL must already exist in the target destination. It must either be defined in the
connect.moduleconfig.cacher.task.siteareasproperty of theWCM WCMConfigServiceservice, or you must have manually pre-rendered it using theSRV=cacheSiteparameter.