Skip to content

Commit

Permalink
Elaborated on environment variables in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand Dunogier committed Feb 14, 2017
1 parent c1f8db4 commit 94cf5c2
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 94cf5c2

Please sign in to comment.