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 |
---|---|---|
|
enabled / disabled |
Enable or disable the content object cache for the view action of the content module. |
|
enabled / disabled |
Enable or disable the caching of the nodetree. |
|
enabled / disabled |
Enable or disable the possibility to cache all of the code's parts that use the |
|
enabled / disabled |
Enable or disable the compiling of the template's codes in the PHP code. |
|
enabled / disabled |
Enable or disable the compression of the compiled template's code. |
|
enabled / disabled |
Enable or disable the optimization of the compiled template's code. |
18.117.187.113