Skip to content

add a note about apc for php recent versions #4370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions book/performance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ Use a Byte Code Cache (e.g. APC)
One of the best (and easiest) things that you should do to improve your performance
is to use a "byte code cache". The idea of a byte code cache is to remove
the need to constantly recompile the PHP source code. There are a number of
`byte code caches`_ available, some of which are open source. The most widely
used byte code cache is probably `APC`_
`byte code caches`_ available, some of which are open source. If you are using
PHP 5.5 or more, the byte code cache is built-in into PHP runtime. For older versions,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would write:

If you are using PHP 5.5 or higher, the runtime has a built-in byte code cache.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As suggested by @ip512 I think it's better to explicitly say "OPcache" instead of talking about an abstract "built-in byte code cache".

the most widely used byte code cache is probably `APC`_

Using a byte code cache really has no downside, and Symfony has been architected
to perform really well in this type of environment.
Expand Down