Out of the box Symfony provides a command to perform cache clearing. It will delete all file-based caches, which mainly consist of Twig template, Symfony container, and Symfony route cache, but also everything else stored in cache folder. Out of the box on a single-server setup this includes "Content cache". For further information on use, see the help text of the command:

1

php bin/console --env=prod cache:clear -h

Note

If you do not specify an environment, by default cache:clear will clear the cache for the dev environment. If you want to clear it for prod you need to to use the --env=prod option.

On each web server

In Clustering setup (several web servers), the command to clear file cache needs to be executed on each and every web server!

For Cluster setup, the content cache (HTTP Cache and Persistent Cache) must be set up to be shared among the servers. And while all relevant cache is cleared for you on repository changes when using the APIs, there might be times where you'll need to clear cache manually:

Logging in eZ Platform consists of two parts, several debug systems that integrates with symfony developer toolbar to give you detailed information about what is going on. And standard PSR-3 logger, as provided by Symfony using Monolog.

If you are running out of memory and don't need to keep track of cache hits and misses, then persistence cache logging, represented by the setting parameters.ezpublish.spi.persistence.cache.persistenceLogger.enableCallLogging, can optionally be disabled.