Both sides previous revisionPrevious revision | Last revisionBoth sides next revision |
74:cms_prefetch [2020/08/25 13:17] – tssr | 74:cms_prefetch [2020/08/25 13:18] – tssr |
---|
| [[:72:configure_stages|Configure the Stages Server]] |
| |
====== CMS Prefetch Configuration ====== | ====== CMS Prefetch Configuration ====== |
| |
=== 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''</font> file: | 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''</font> 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> |
| |
//Classic all documents available// | //Classic all documents available// |
<code> | <code> |
\\ | |
class=de.methodpark.pkit.cms.prefetch.ClassicAllDocumentsStrategy | class=de.methodpark.pkit.cms.prefetch.ClassicAllDocumentsStrategy |
| |
//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 |
| |
| |
<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> |
| |