Skip to content

Commit 302c6ed

Browse files
committed
Mention cachetool utility to clear OPcache cache from CLI
1 parent c83e12e commit 302c6ed

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

performance.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,12 @@ using APC and ``opcache_reset()`` when using OPcache).
5555

5656
In PHP, the CLI and the web processes don't share the same OPcache. This
5757
means that you cannot clear the web server OPcache by executing some command
58-
in your terminal. You either need to restart the web server or call the
59-
``apc_clear_cache()`` or ``opcache_reset()`` functions via the web server
60-
(i.e. by having these in a script that you execute over the web).
58+
in your terminal. These are some of the possible solutions:
59+
60+
1. Restart the web server;
61+
2. Call the ``apc_clear_cache()`` or ``opcache_reset()`` functions via the
62+
web server (i.e. by having these in a script that you execute over the web);
63+
3. Use the `cachetool`_ utility to control APC and OPcache from the CLI.
6164

6265
Optimizing all the Files Used by Symfony
6366
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -211,3 +214,4 @@ Learn more
211214
.. _`APCu PHP functions`: http://php.net/manual/en/ref.apcu.php
212215
.. _`autoload.php`: https://github.com/symfony/symfony-standard/blob/master/app/autoload.php
213216
.. _`bootstrap file`: https://github.com/sensiolabs/SensioDistributionBundle/blob/master/Composer/ScriptHandler.php
217+
.. _`cachetool`: https://github.com/gordalina/cachetool

0 commit comments

Comments
 (0)