viewcache.ini [ViewCacheSettings]
The block [ViewCacheSettings] of settings/viewcache.ini, with 3 setting(s).
Never edit settings/viewcache.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:
settings/override/viewcache.ini.append.phpfor every siteaccess,settings/siteaccess/<siteaccess>/viewcache.ini.append.phpfor one siteaccess,extension/<extension>/settings/viewcache.ini.append.phpin an extension (read when the extension is active).
ClearRelationTypes
Determines which types of related objects will be choosen to clear view cache
when publishing current object.
Possible values are:
common - common relations made on object level
embedded - embedded objects
linked - linked objects
attribute - relations made with attributes of 'object relation' or
'object relations' datatypes
reverse_common - reverse common relations (objects that relate the one currently
being published) on object level
reverse_embedded - objects that have current object as embedded
reverse_linked - objects that have linked current object
reverse_attribute - objects that have current object as related in their attributes.
Default: a list of 3: common, reverse_common, reverse_embedded.
# settings/override/viewcache.ini.append.php
[ViewCacheSettings]
# an empty "ClearRelationTypes[]" first replaces the shipped list; without it the items are added
ClearRelationTypes[]
ClearRelationTypes[]=common
ClearRelationTypes[]=reverse_common
ClearRelationTypes[]=reverse_embedded
*/ ?>SmartCacheClear
Controls the smart viewcache handler, use enabled, disabled or exclusive.
When the handler is disabled the system will clear the viewcache
for all published nodes of the current object, its parent(s), reverse
related objects and objects with same keywords (if any).
When enabled it will in addition try to follow the rules set in viewcache.ini
for more advanced relations between objects. e.g. to clear a forum
listing when a new topic or reply is posted.
When exclusive, settings for specific classes are used exclusively
(if defined), instead of in addition to the default settings.
Default: disabled.
# settings/override/viewcache.ini.append.php
[ViewCacheSettings]
SmartCacheClear=disabled
*/ ?>KeywordNodesCacheClearLimit
The maximum number of linked keyword nodes to go trough
when looking for objects that needs to have its cache cleared.
Set to integer to activate, 0 to disable keyword clearing globally
or disabled to not have any limit at all (default value)
Default: disabled.
# settings/override/viewcache.ini.append.php
[ViewCacheSettings]
KeywordNodesCacheClearLimit=disabled
*/ ?>Related
Generated by ./console exp:help:examples from settings/viewcache.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.