Speed up WordPress with OPCache

Speed up WordPress with OPCache

OPcache PHP OPcode caching system.

PHP has many options available which can boost up the application performance and allow handling number of requests smoothly at one time. OPcache improves PHP performance by storing precompiled script byte-code in shared memory, thereby removing the need for PHP to load and parse scripts on each request.

This extension is bundled with PHP 5.5.0 and later, and is » available in PECL for PHP versions 5.2, 5.3 and 5.4.

OPcache is a type of OPcode caching. This type of caching compiles human-readable PHP code to code your server understands which is called opcode. This occurs when the PHP file loads on a web page for the first time. Then, it’s saved to the server’s memory for faster loading at each subsequent page visit.

PHP7 OPcache can give you optimum performance

Requirements: No external libraries are needed to build this extension.

OpCacheGUI -> GUI for PHP’s OpCache:

Installation: For installation instructions and example configuration see the installation wiki page.

Screenshots:

Speed up WordPress with OPCache - GUI for PHP's OpCache
Speed up WordPress with OPCache - GUI for PHP's OpCache
Speed up WordPress with OPCache - GUI for PHP's OpCache

Recommended php.ini settings

The following settings are generally recommended as providing good performance:

opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1

While the “suggested” OPCache settings for php.ini might be appropriate for a production server, you’re going to want to change several while you’re developing, or you’re not going to see any changes to your code. Get familiar with what they mean before blindly pasting that into php.ini and assuming things are going to work well.

OPCache manual click here.

Run-time Configuration: Click Here

5/5 (7 Reviews)