manifest / performance / wordpress-opcache
Wordpress OPcache Cache Plugin
OPcache Object Cache plugin for WordPress. Faster than Redis, Memcache or APC.
by Elco Brouwer von Gonzenbach <elco.brouwer@gmail.com> · github.com/elcobvg/wordpress-opcache · website
★ 64stars
22forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/elcobvg/wordpress-opcache/archive/refs/heads/master.zipFrom the readme
wordpress-opcache
OPcache Object Cache plugin for WordPress. Faster than Redis, Memcache or APC.
Description ##
This plugin provides a PHP OPcache based driver for the WordPress object cache.
An object cache is a place for WordPress and WordPress extensions to store the results of complex operations. On subsequent loads,
this data can be fetched from the cache, which will be must faster than dynamically generating it on every page load.
Be sure to read the installation instructions, as this is not a traditional plugin, and needs to be installed in a specific location.
This method is faster than Redis, Memcache, APC, and other PHP caching solutions because all those solutions must serialize and unserialize objects. By storing PHP objects in file cache memory across requests, this driver can avoid serialization completely!
Installation
1. Verify that you have the PHP OPcache extension installed. (see below)
2. Copy object-cache.php to your WordPress content directory (wp-content/ by default). This is a drop-in file, not a plugin, so it belongs in the wp-content directory, not the plugins directory.
3. Done!
OPcache configuration
OPcache can only be compiled as a shared exten