mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-18 03:21:18 +02:00
Fix typos in bytecode cache section
This commit is contained in:
@@ -4,15 +4,15 @@ isChild: true
|
|||||||
|
|
||||||
## Bytecode Cache
|
## Bytecode Cache
|
||||||
|
|
||||||
When PHP file is executed, under the hood it is first compiled to bytecode (also known as opcode) and only then, the bytecode is executed.
|
When a PHP file is executed, under the hood it is first compiled to bytecode (also known as opcode) and, only then, the bytecode is executed.
|
||||||
If PHP file is not modified, then bytecode will always be same, which means that compilation step is a waste of CPU resources.
|
If a PHP file is not modified, the bytecode will always be the same. This means that the compilation step is a waste of CPU resources.
|
||||||
|
|
||||||
This is where Bytecode cache comes in. It prevents redundant compilation by storing bytecode in memory and reusing it on successive calls.
|
This is where Bytecode cache comes in. It prevents redundant compilation by storing bytecode in memory and reusing it on successive calls.
|
||||||
Setting up bytecode cache is a matter of minutes and your application will speed up significantly, there's really no reason not to use it.
|
Setting up bytecode cache is a matter of minutes, and your application will speed up significantly. There's really no reason not to use it.
|
||||||
|
|
||||||
Popular bytecodes caches are:
|
Popular bytecodes caches are:
|
||||||
|
|
||||||
[APC](http://php.net/manual/en/book.apc.php)
|
* [APC](http://php.net/manual/en/book.apc.php)
|
||||||
[XCache](http://xcache.lighttpd.net/)
|
* [XCache](http://xcache.lighttpd.net/)
|
||||||
[Zend Optimizer+](http://www.zend.com/products/server/) (part of Zend Server package)
|
* [Zend Optimizer+](http://www.zend.com/products/server/) (part of Zend Server package)
|
||||||
[WinCache](http://www.iis.net/download/wincacheforphp) (extension for MS Windows Server)
|
* [WinCache](http://www.iis.net/download/wincacheforphp) (extension for MS Windows Server)
|
||||||
|
Reference in New Issue
Block a user