Customize cache settings to speed up the performance

In this section, we will summarize the configuration settings for caching of a quick site using eZ Publish.

In the global (or siteaccess) site.ini file, we need to have the following settings enabled:

[RegionalSettings]
...
TranslationCache=enabled
...
[ContentSettings]
...
ViewCaching=enabled
PreViewCache=enabled
...
[TemplateSettings]
...
NodeTreeCaching=enabled
TemplateCache=enabled
TemplateCompile=enabled
TemplateCompression=enabled
TemplateOptimization=enabled
...
[OverrideSettings]
...
Cache=enabled
...
[RoleSettings]
...
EnableCaching=true
UserPolicyCache=enabled
...

Next, in the global viewcache.ini (or override) file, we need to have the following settings:

[ViewCacheSettings]
ClearRelationTypes[]=common
ClearRelationTypes[]=reverse_common
ClearRelationTypes[]=reverse_embedded
ClearRelationTypes[]=reverse_attribute
SmartCacheClear=enabled

Moreover, as we said, the installation of an opcode accelerator like APC is also strongly recommended.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.61.30