From 94cf5c215e9cf7b16088264085f5da2fae9e1a1f Mon Sep 17 00:00:00 2001 From: Bertrand Dunogier Date: Tue, 14 Feb 2017 18:03:37 +0100 Subject: [PATCH] Elaborated on environment variables in README.md --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b750552e..fb0df796 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,24 @@ Add the package to `app/AppKernel.php`, *before* the EzPublishCoreBundle declara The package will replace the services from the kernel, thus enabling the new features, such as multi-tagging. The application cache class needs to be customized. If you haven't changed the `AppCache` class, you can do so -by setting the `SYMFONY_HTTP_CACHE_CLASS` environment variable: +by setting the `SYMFONY_HTTP_CACHE_CLASS` environment variable for your PHP or web server user. +If you use your own `AppCache` class, you will have to make it to extend from this class instead +of from the CoreBundle's. + +For PHP's internal server: export SYMFONY_HTTP_CACHE_CLASS='EzSystems\PlatformHttpCacheBundle\AppCache' -Do not forget to restart your web server. +For Apache, with the default eZ Platform virtual host definition, uncomment the `SetEnv` lines for the two +variables above in your virtualhost, and set the values accordingly: + + SetEnv SYMFONY_HTTP_CACHE_CLASS='EzSystems\PlatformHttpCacheBundle\AppCache' -Alternatively, if you use your own `AppCache` class, you will have to make it to extend from this class instead. +For Nginx, set the variables using `fastcgi_param`: + + fastcgi_param SYMFONY_HTTP_CACHE "1"; + +Do not forget to restart your web server. ## Features