Skip to content

Commit 93387bf

Browse files
committed
minor #5029 Finish #4370: add a note about apc for php recent versions (ip512, WouterJ)
This PR was merged into the 2.3 branch. Discussion ---------- Finish #4370: add a note about apc for php recent versions Finishes #4370 Original description: > apc is not required for php5.5+, I suggest to mention it to avoid people trying to install it on recent php versions | Q | A | --- | --- | Doc fix? | yes | New docs? | no | Applies to | all | fixed tickets | - Commits ------- 95d09e9 Minor rewording bab2a29 add a note about apc for php recent versions
2 parents ccabc95 + 95d09e9 commit 93387bf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

book/performance.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ Use a Byte Code Cache (e.g. APC)
1818
One of the best (and easiest) things that you should do to improve your performance
1919
is to use a "byte code cache". The idea of a byte code cache is to remove
2020
the need to constantly recompile the PHP source code. There are a number of
21-
`byte code caches`_ available, some of which are open source. The most widely
22-
used byte code cache is probably `APC`_
21+
`byte code caches`_ available, some of which are open source. As of PHP 5.5,
22+
PHP comes with `OPcache`_ built-in. For older versions, the most widely used
23+
byte code cache is probably `APC`_
2324

2425
Using a byte code cache really has no downside, and Symfony has been architected
2526
to perform really well in this type of environment.
@@ -139,6 +140,7 @@ feature is disabled in the byte code cache (e.g. ``apc.stat=0`` in APC), there
139140
is no longer a reason to use a bootstrap file.
140141

141142
.. _`byte code caches`: http://en.wikipedia.org/wiki/List_of_PHP_accelerators
143+
.. _`OPcache`: http://php.net/manual/en/book.opcache.php
142144
.. _`APC`: http://php.net/manual/en/book.apc.php
143145
.. _`autoload.php`: https://github.com/symfony/symfony-standard/blob/master/app/autoload.php
144146
.. _`bootstrap file`: https://github.com/sensio/SensioDistributionBundle/blob/master/Composer/ScriptHandler.php

0 commit comments

Comments
 (0)