First make sure that OCEE itself is installed.
Then, make the following configuration changes in the configuration folder ${OPENCMS_HOME}/WEB-INF/config/:
This page describes how to install the OCEE Accelerator, and which configuration options are available.
<configuration>
...
<config class="org.opencms.ocee.cache.CmsCacheConfiguration"/>
</configuration>
Add the new driver sequence in the opencms.properties configuration file, adding it under the “Configuration of the driver manager” section, as follows:
#
# Configuration of the driver manager
###########################################################################
driver.vfs=\
cache,\
db
driver.project=\
cache,\
db
driver.user=\
cache,\
db
driver.history=db
driver.subscription=db
Add the driver classes in the opencms.properties configuration file, adding it under the “Configuration of the caches” section (it could be that this section does not exist in your current configuration file), as follows:
#
# Configuration of the cache drivers
###########################################################################
cache.vfs.driver=org.opencms.ocee.cache.CmsVfsCache
cache.project.driver=org.opencms.ocee.cache.CmsProjectCache
cache.user.driver=org.opencms.ocee.cache.CmsUserCache
The Accelerator configuration is maintained in the ${OPENCMS_HOME}/WEB-INF/config/ocee-cache.xml XML file. The following sections describe the configuration options for this file. For a standard configuration file, see the provided example configuration file.
/opencms/cache
/opencms/cache/online-flush-resource-limit
/opencms/cache/drivers/vfs
class
/opencms/cache/drivers/vfs/capacities
/opencms/cache/drivers/project
/opencms/cache/drivers/user
class
This implementation provides caches for all DB drivers, except the history driver, ie. vfs, user and project drivers. Each of these cache drivers implement several caches that can be configured separately as described below. Note that cache capacities can also be set interactively through the user interface.
Every cache type (as enumerated in the org.opencms.ocee.cache.vfs.CmsVfsCacheInstanceType class) has to be configured in the configuration file in a separated /opencms/cache/drivers/vfs/capacities/capacity
node, with the following structure:
/opencms/cache/drivers/vfs/capacities/capacity/class
/opencms/cache/drivers/vfs/capacities/capacity/offline
/opencms/cache/drivers/vfs/capacities/capacity/online
/opencms/cache/drivers/vfs/capacities/capacity/params
maxlength:10240
showlength:1024
Every cache type (as enumerated in the org.opencms.ocee.cache.user.CmsUserCacheInstanceType class) has to be configured in the configuration file in a separated /opencms/cache/drivers/user/capacities/capacity node, with the following structure:
/opencms/cache/drivers/user/capacities/capacity/class
/opencms/cache/drivers/user/capacities/capacity/online
/opencms/cache/drivers/user/capacities/capacity/params
Every cache type (as enumerated in the org.opencms.ocee.cache.project.CmsProjectCacheInstanceType class) has to be configured in the configuration file in a separated
/opencms/cache/drivers/project/capacities/capacity node, with the following structure:
/opencms/cache/drivers/project/capacities/capacity/class
/opencms/cache/drivers/project/capacities/capacity/online
/opencms/cache/drivers/project/capacities/capacity/params
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE opencms SYSTEM "http://www.alkacon.com/dtd/6.0/ocee-cache.dtd">
<opencms>
<cache>
<online-flush-resource-limit>100</online-flush-resource-limit>
<drivers>
<vfs class="org.opencms.ocee.cache.CmsVfsCache">
<capacities>
<capacity>
<class>org.opencms.ocee.cache.vfs.CmsCacheResources</class>
<offline>4096</offline>
<online>8192</online>
</capacity>
<capacity>
<class>org.opencms.ocee.cache.vfs.CmsCacheProperties</class>
<offline>2048</offline>
<online>2048</online>
</capacity>
<capacity>
<class>org.opencms.ocee.cache.vfs.CmsCacheACEList</class>
<offline>4096</offline>
<online>8192</online>
</capacity>
<capacity>
<class>org.opencms.ocee.cache.vfs.CmsCacheParentFolder</class>
<offline>2048</offline>
<online>2048</online>
</capacity>
<capacity>
<class>org.opencms.ocee.cache.vfs.CmsCacheFiles</class>
<offline>512</offline>
<online>512</online>
<params>maxlength:10240,showlength:1024</params>
</capacity>
<capacity>
<class>org.opencms.ocee.cache.vfs.CmsCacheRelations</class>
<offline>4096</offline>
<online>8192</online>
</capacity>
<capacity>
<class>org.opencms.ocee.cache.vfs.CmsCacheNonExistentResources</class>
<offline>4096</offline>
<online>8192</online>
</capacity>
<capacity>
<class>org.opencms.ocee.cache.vfs.CmsCachePropertyDefinitions</class>
<offline>128</offline>
<online>128</online>
</capacity>
<capacity>
<class>org.opencms.ocee.cache.vfs.CmsCacheResourceLists</class>
<offline>256</offline>
<online>256</online>
</capacity>
<capacity>
<class>org.opencms.ocee.cache.vfs.CmsCacheResourceTree</class>
<offline>0</offline>
<online>128</online>
</capacity>
<capacity>
<class>org.opencms.ocee.cache.vfs.CmsCacheACE</class>
<offline>64</offline>
<online>64</online>
</capacity>
<capacity>
<class>org.opencms.ocee.cache.vfs.CmsCacheUrlNames</class>
<offline>4096</offline>
<online>8192</online>
</capacity>
</capacities>
</vfs>
<project class="org.opencms.ocee.cache.CmsProjectCache">
<capacities>
<capacity>
<class>org.opencms.ocee.cache.project.CmsCacheProjectResources</class>
<online>64</online>
</capacity>
<capacity>
<class>org.opencms.ocee.cache.project.CmsCachePublishedResources</class>
<online>128</online>
</capacity>
<capacity>
<class>org.opencms.ocee.cache.project.CmsCacheStaticExportResourceName</class>
<online>1024</online>
</capacity>
</capacities>
</project>
<user class="org.opencms.ocee.cache.CmsUserCache">
<capacities>
<capacity>
<class>org.opencms.ocee.cache.user.CmsCacheUser</class>
<online>8192</online>
</capacity>
<capacity>
<class>org.opencms.ocee.cache.user.CmsCacheUserList</class>
<online>4096</online>
</capacity>
<capacity>
<class>org.opencms.ocee.cache.user.CmsCacheGroup</class>
<online>128</online>
</capacity>
<capacity>
<class>org.opencms.ocee.cache.user.CmsCacheGroupList</class>
<online>4096</online>
</capacity>
</capacities>
</user>
</drivers>
</cache>
</opencms>