Skip to content

Commit 94cf5c2

Browse files
author
Bertrand Dunogier
committed
Elaborated on environment variables in README.md
1 parent c1f8db4 commit 94cf5c2

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,24 @@ Add the package to `app/AppKernel.php`, *before* the EzPublishCoreBundle declara
2525
The package will replace the services from the kernel, thus enabling the new features, such as multi-tagging.
2626

2727
The application cache class needs to be customized. If you haven't changed the `AppCache` class, you can do so
28-
by setting the `SYMFONY_HTTP_CACHE_CLASS` environment variable:
28+
by setting the `SYMFONY_HTTP_CACHE_CLASS` environment variable for your PHP or web server user.
29+
If you use your own `AppCache` class, you will have to make it to extend from this class instead
30+
of from the CoreBundle's.
31+
32+
For PHP's internal server:
2933

3034
export SYMFONY_HTTP_CACHE_CLASS='EzSystems\PlatformHttpCacheBundle\AppCache'
3135

32-
Do not forget to restart your web server.
36+
For Apache, with the default eZ Platform virtual host definition, uncomment the `SetEnv` lines for the two
37+
variables above in your virtualhost, and set the values accordingly:
38+
39+
SetEnv SYMFONY_HTTP_CACHE_CLASS='EzSystems\PlatformHttpCacheBundle\AppCache'
3340

34-
Alternatively, if you use your own `AppCache` class, you will have to make it to extend from this class instead.
41+
For Nginx, set the variables using `fastcgi_param`:
42+
43+
fastcgi_param SYMFONY_HTTP_CACHE "1";
44+
45+
Do not forget to restart your web server.
3546

3647
## Features
3748

0 commit comments

Comments
 (0)