Skip to content

Commit e2abd22

Browse files
committed
Added a note about the different caches for CLI and the server
1 parent b9d94b8 commit e2abd22

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

performance.rst

+8-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,14 @@ the updates you've made in the application won't be seen.
4242

4343
For the same reasons, the byte code cache must also be cleared when deploying
4444
the application (for example by calling ``apc_clear_cache()`` PHP function when
45-
using APC and ``opcache_reset()`` when using OPCache).
45+
using APC and ``opcache_reset()`` when using OPcache).
46+
47+
.. note::
48+
49+
In PHP, the CLI and the web processes don't share the same OPcache. This
50+
means that you cannot clear the web server OPcache by executing some command
51+
in your terminal. You either need to restart the web server or call to the
52+
``apc_clear_cache()`` and ``opcache_reset()`` functions via the web server.
4653

4754
Optimizing all the Files Used by Symfony
4855
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)