Message-ID: <798902002.3460.1485853276910.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3459_744199435.1485853276910" ------=_Part_3459_744199435.1485853276910 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
eZ Publish 5 being built on top of Symfony 2, it uses standard H= TTP cache headers. By default the Symfony 2 reverse proxy, written in PHP, = is used to handle cache, but it can be easily replaced with any other rever= se proxy like Varnish.
Use of Varnish is a requirement for use in Clustering setup, for ove= rview of clustering feature see Clustering.
Version compatibility: 5.4 / 2014.11 AND HIGHER
To use Varnish with 5.2 or 5.3, please see Using Varnish with eZ Publish 5.2-5.3=
For Varnish to work properly with eZ, you'll need to use one of the prov= ided files as a basis:
Note: Http cache management is done with the help of FOSHttpCacheBundle. One may need to tweak their VCL = further on according to = FOSHttpCache documentation in order to use features supported by it.
<VirtualHost *:80> # Configure your VirtualHost with rewrite rules and stuff # Force front controller NOT to use built-in reverse proxy. SetEnv USE_HTTP_CACHE 0 =09# Configure IP of your Varnish server to be trusted proxy # Replace fake IP address below by your Varnish IP address SetEnv TRUSTED_PROXIES "193.22.44.22" </VirtualHost>=20
fastcgi_param USE_HTTP_CACHE 0; # Configure IP of your Varnish server to be trusted proxy # Replace fake IP address below by your Varnish IP address fastcgi_param TRUSTED_PROXIES "193.22.44.22";=20
ezpublish: http_cache: # As of 5.4 only use "http" # "single_http" and "multiple_http" are deprecated but will still w= ork. purge_type: http system: # Assuming that my_siteaccess_group your frontend AND backend sitea= ccesses my_siteaccess_group: http_cache: # Fill in your Varnish server(s) address(es). purge_servers: [http://my.varnish.server:6081]=20