Configure pre-rendering - IWWCM

 

+
Search Tips   |   Advanced Search

 

We can enable pre-rendering so that content can be viewed either through a IWWCM application or as a standalone site that is accessed through a Web server.

 

Enable pre-rendering with WCM

This option is used when you are accessing the pre-rendered site through WCM. This will increase performance as static content is accessed from the pre-rendered site, but dynamic content will still be rendered through WCM.

To enable users to access the pre-rendered site through a WCM application, edit...

portal_server_root/wcm/shared/app/config/wcmservices/WCMConfigService.properties

...and ensure that the following line is commented out...

    connect.businesslogic.module.default.class=com.aptrix.pluto.renderer.RendererModule 

Ensure that the following line is not commented out:

    connect.businesslogic.module.default.class=com.aptrix.cacher.CacherModule 

We cannot use the local rendering portlet (Web Content Viewer) when pre-rendering is set as the default module.

 

Enable pre-rendering with a standalone site

This option is used when you are using WCM to generate a pre-rendered site, but are not using WCM to view the pre-rendered site. You will need to use a Web server to view the pre-rendered site.

Ensure that the following lines are not commented out in the WCMConfigService.properties file:

    connect.moduleconfig.cacher.cacherclass=com.aptrix.cacher.Cacher     connect.businesslogic.module.cacher.class=com.aptrix.cacher.CacherModule 

Ensure that the following property values are set.

connect.moduleconfig.cacher.destdir=${WCM_ILWWCM_HOME}/ilwwcm/cacher

Base directory under which each site cache will be created. There will be one subdirectory created for each site.

If the prerenderer is run with the connect.moduleconfig.cacher.overwritecache property set to true, any files in the connect.moduleconfig.cacher.destdir path that were not written in the last run of the prerenderer will be deleted. For this reason, ensure that the connect.moduleconfig.cacher.destdir path is only used for storing rendered content and that it does not contain any other data that cannot be recreated.

connect.moduleconfig.cacher.tempdir=${WCM_ILWWCM_HOME}/ilwwcm/cacher/temp

Temporary directory that is required to build the site cache prior to moving the data over to the base directory specified by the connect.moduleconfig.cacher.destdir property.

connect.moduleconfig.cacher.delay=1

Set the time, in seconds, between requesting a page while caching.

connect.moduleconfig.cacher.busydelay=5

Set the time, in seconds, of the busy delay setting. Used if executing within the busy start to busy end period. Otherwise the delay setting is used.

connect.moduleconfig.cacher.busystart=9:00 am

connect.moduleconfig.cacher.busyend=5:00 pm

These settings determine the times between which the busy delay setting will be used. Enter an absolute time as shown.

connect.moduleconfig.cacher.overwritecache=true

true

Prerenderer will overwrite files in the destdir cache directory (then delete unneeded files). This results in a progressive change in site content as seen by the user.

false

Prerenderer renames the tempdir to the destdir to achieve an instant update to a new version of the pre-rendered site.

A value of false should not be used if a Web server is used to display the pre-rendered data because some Web servers lock the data directories.

connect.moduleconfig.cacher.rendereruser=Anonymous

This determines the user to be used to render the Web Content Management content. Either type Anonymous or Administrator or a specific Member Manager user or group name.

The site is pre-rendered based on this user's security rights. If the user specified here does not have access to a particular component it will not be pre-rendered.

connect.moduleconfig.cacher.task.cacherurl=http://${WCM_HOST}:${WCM_PORT}/${WCM_CONTEXT_ROOT}/connect/

The full URL to the CacherModule, which performs the pre-rendering.

connect.moduleconfig.cacher.task.servletpath=/connect

Servlet path to the Web Content Management servlet not including the context path.

connect.moduleconfig.cacher.defaultcontentname=index.html

This sets the name of the default or home file of the site used when accessing the pre-rendered site. This normally would be index.html.

connect.moduleconfig.cacher.task.sites=[LibraryA/SiteA],[LibraryB/SiteB],[SiteC]

Sites within a Web Content Management environment to cache are entered here, separated by commas.

This property provides the option of specifying the library in addition to the site. 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.

connect.moduleconfig.cacher.task.interval.recurrence=10

connect.moduleconfig.cacher.task.interval.startdelay=1

The CacherModule can be set to run after a recurring number of minutes.

Recurrence:

The recurring period in minutes for a recurring task.

StartDelay:

Delay in minutes prior to starting the first recurring task.

connect.moduleconfig.cacher.task.scheduled.times=3:00 am

Alternately, the CacherModule can be set to run at certain times. Enter a series of absolute times, separated by commas.

 

Parent Topic

Pre-rendered sites