[opencms-dev] Flex Cache Configuration Options
Ramon Gavira Sáenz
ramon.gavira at sagasoluciones.com
Thu Nov 24 17:37:04 CET 2022
I have check thin documentation page: https://documentation.opencms.org/opencms-documentation/template-development/caching-in-opencms/the-flex-cache/index.html,
But, Can anyone explain a little deeper what are this configs params for?
maxcachebytes
The maximum amount of server memory used by the Flex cache in bytes. The amount of available server memory is the critical factor here and has to be considered carefully.
avgcachebytes
The average amount of server memory used by the Flex cache in bytes.
maxentrybytes
The maximum size of a single cache entry in bytes.
maxkeys
The maximum number of cached page variations in the Flex cache.
The default config is:
<flexcache>
<cache-enabled>true</cache-enabled>
<cache-offline>false</cache-offline>
<maxcachebytes>8000000</maxcachebytes>
<avgcachebytes>6000000</avgcachebytes>
<maxentrybytes>400000</maxentrybytes>
<maxkeys>2000</maxkeys>
</flexcache>
And Documentation explain that thats means the following:
The default settings of the Flex cache parameters after installing OpenCms are:
1. The Flex cache is enabled
2. The cache for offline projects is disabled
3. The Flex cache uses 8mb memory for the cached pages or a maximum of 2000 cached page variations in total.
Point 1 and 2 are ok, but what about 3? What is exactly a cached page? What is avgcachebytes means in config? And maxentrybytes?
Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20221124/7c48c83f/attachment.htm>
More information about the opencms-dev
mailing list