Default caching settings

In the default configuration, all of the major levels of caching are enabled. If you install a "white label" eZ Publish, the only level not enabled by default is the Smart Cache, which needs to be configured manually, as seen in the previous section.

When we develop our project, it is very inconvenient to have the ContentCache setting enabled. This is because it means that we have to delete it every time we want to see the changes that we applied to a template.

To solve this problem, you can enable the DevelopmentMode setting in the TemplateSettings section of the global (or override) site.ini file that performs many more checks on the cancellation time of a template. But that directive is effective only on the content's cache, and not on the layout cache block.

If you want to disable the cache in an absolute way, you must add the following configuration settings to the global (or siteaccess) site.ini.append.php file:

[ContentSettings]
ViewCaching=disabled
[TemplateSettings]
NodeTreeCaching=disabled
TemplateCache=disabled
TemplateCompile=disabled
TemplateCompression=disabled
TemplateOptimization=disabled

In the following table, you will find the meaning of all of these settings:

Name

Value

Description

ViewCaching

enabled / disabled

Enable or disable the content object cache for the view action of the content module.

NodeTreeCaching

enabled / disabled

Enable or disable the caching of the nodetree.

TemplateCache

enabled / disabled

Enable or disable the possibility to cache all of the code's parts that use the {cache-block} template function.

TemplateCompile

enabled / disabled

Enable or disable the compiling of the template's codes in the PHP code.

TemplateCompression

enabled / disabled

Enable or disable the compression of the compiled template's code.

TemplateOptimization

enabled / disabled

Enable or disable the optimization of the compiled template's code.

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

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