Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
74:cms_prefetch [2020/08/25 07:59] tssr74:cms_prefetch [2024/02/15 00:00] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +[[:72:configure_stages|Configure the Stages Server]]
 +
 ====== CMS Prefetch Configuration ====== ====== CMS Prefetch Configuration ======
  
Line 6: Line 8:
 === Configuration of the CMS Prefetch === === Configuration of the CMS Prefetch ===
  
-The default configuration of the CMS prefetch is found in <font inherit/Courier New,Courier,monospace;;inherit;;inherit>''<Stages installation path>/stages/conf/config.xml''</fontfile:+The default configuration of the CMS prefetch is found in ''<Stages installation path>/stages/conf/config.xml'' file:<code>
  
-<code> +<stages-config> 
-<stages-config>\\ + <properties>
-<properties>+
  
-<property name="cms.prefetch.activated" value="true"/>\\ + <property name="cms.prefetch.activated" value="true"/> 
-<property name="cms.cache.refreshIntervalInMinutes" value="60"/>\\ + <property name="cms.cache.refreshIntervalInMinutes" value="60"/> 
-<property name="cms.prefetch.sleepMillisBetweenDocuments" value="0"/>\\ + <property name="cms.prefetch.sleepMillisBetweenDocuments" value="0"/> 
-<property name="cms.prefetch.workersCount" value="1"/>\\ + <property name="cms.prefetch.workersCount" value="1"/> 
-<property name="cms.prefetch.strategy.class"\\ + <property name="cms.prefetch.strategy.class" 
-value="de.methodpark.pkit.cms.prefetch.ClassicAllDocumentsStrategy"/>\\ + value="de.methodpark.pkit.cms.prefetch.ClassicAllDocumentsStrategy"/> 
-</properties>\\ + </properties> 
-<cms> ... </cms>\\+ <cms> ... </cms>
 </stages-config> </stages-config>
  
Line 34: Line 35:
 //Classic all documents available// //Classic all documents available//
 <code> <code>
-\\ 
 class=de.methodpark.pkit.cms.prefetch.ClassicAllDocumentsStrategy class=de.methodpark.pkit.cms.prefetch.ClassicAllDocumentsStrategy
  
Line 43: Line 43:
 //Prefetch by CMS type strategy// //Prefetch by CMS type strategy//
 <code> <code>
-\\ 
 class=de.methodpark.pkit.cms.prefetch.PrefetchByCMSTypeStrategy class=de.methodpark.pkit.cms.prefetch.PrefetchByCMSTypeStrategy
  
Line 53: Line 52:
  
 <code> <code>
-\\ +<stages-config> 
-<stages-config>\\ + <properties> 
-<properties>\\ + <property name="cms.prefetch.workersCount" value="8"/> 
-<property name="cms.prefetch.workersCount" value="8"/>\\ + <property name="cms.prefetch.strategy.class" 
-<property name="cms.prefetch.strategy.class"\\ + value="de.methodpark.pkit.cms.prefetch.PrefetchByCMSTypeStrategy"/> 
-value="de.methodpark.pkit.cms.prefetch.PrefetchByCMSTypeStrategy"/>\\ + <property name="cms.prefetch.maxParallelTasks.SVN" value="1"/> 
-<property name="cms.prefetch.maxParallelTasks.SVN" value="1"/>\\ + <!--0 is mapped to unlimited, if nothing were configured it would 
-<!--0 is mapped to unlimited, if nothing were configured it would\\ + default to 1 -->
-default to 1 -->+
  
-<property name="cms.prefetch.maxParallelTasks.Integrity" value="0"/>\\ + <property name="cms.prefetch.maxParallelTasks.Integrity" value="0"/> 
-</properties>+ </properties>
  
-<cms> ... </cms>\\+ <cms> ... </cms>
 </stages-config> </stages-config>
  
 </code> </code>
  
-== Cache Persistence ==+==== Cache Persistence ====
  
 Stages caches two different levels of information regarding files in external configuration management systems. It collects infomation about the folder structure of a CMS and the files contained within these folders. This information is then used for displaying document information such as the version or state of a file. Stages caches two different levels of information regarding files in external configuration management systems. It collects infomation about the folder structure of a CMS and the files contained within these folders. This information is then used for displaying document information such as the version or state of a file.
Line 77: Line 75:
 These caches are persisted in the file system on the application server that runs Stages. These caches are persisted in the file system on the application server that runs Stages.
  
-**Since 7.4.6.1**:+✘ **Since 7.4.6.1**: 
 + 
 +The properties
  
-The property //cms.prefetch.memorycache.max.documents// and //cms.structure-prefetch.memorycache.max.repositories// can be used to set the maximum amount of objects, which should be cached in memory for the documents-cache and the repository-cache.+  * //cms.prefetch.memorycache.max.documents// 
 +  * //cms.structure-prefetch.memorycache.max.repositories// 
 +can be used to set the maximum amount of objects, which should be cached in memory for the documents-cache and the repository-cache.
  
-The default values are **4096** documents and **20** repositories.+The default values are **4096**  documents and **20**  repositories.