Message-ID: <450654109.4024.1485856399349.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_4023_975922770.1485856399344" ------=_Part_4023_975922770.1485856399344 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
This page describes commands involved in clearing cache from the= command line, these commands runs on a web server level.
Cluster note
On Cluster (Setup with =
several web servers) these commands needs to be executed on each =
and every web server!
The exception is Content Cache, which in =
a cluster is shared between each server using Memcached/Varnish/Redis/.. to=
allow cache to be cleared on content updates.
Out of the box Symfony provides a command to perform cache clearing. It =
will delete all file based caches, which mainly consists of Twig template, =
Symfony container, and Symfony route cache. However as it deletes everythin=
g in folder ezpublish/cache/<environment>/*
this also im=
plies Symfony Proxy being deleted if you use that for Symfony HTTPCache (the default single seve=
r choice) as opposed to Varnish, and eZ Persistent Cache unless you use Memcached.
For information of use, see the help text of the command:
php ezpublish/console cache:clear -h=20
5.X<= /p>
The Symfony cache:clear
command is extended via Legacy (Bun=
dle/Bridge) to also clear legacy cache.
Prior to version 5.3.5 and 5.4.2 the command cleared all default cache i= tems in legacy, however as of these releases (see EZP-24048= a>) this is now like the Symfony command itself deleting only code related = caches, and not content related caches. Specifically the following legacy c= ache "tags" are now cleared:
For further info on other cache clearing options in legacy see below.
5.X
For Cluster setups or other setups wh= ere Varnish and/or Memchached is used, the legacy cache clearing command ca= n be used to delete content cache both in legacy, and in Platform stack tha= nks to ViewCache integration in Legacy Bundle/Bridge.
For using it make sure you use <=
/span>ezpublish:legacy:script
, like this:
php ezpublish/console ezpublish:legacy:script --legacy-help bin/php/= ezcontentcache.php=20
For example of use, execute help command above, and/or see legacy documentation on clearing ViewC= ache.