Contributors: l3rady
Donate link: http://l3rady.com/donate
Tags: APC, object cache, backend, cache, performance, speed
Requires at least: 3.3
Tested up to: 4.2.4
Stable tag: 1.1.3
WordPress APC Object Cache Backend provides a persistent memory-based backend for the WordPress object cache.
WordPress APC Object Cache Backend provides a persistent memory-based backend 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 object cache is a fork of Mark Jaquith's APC Object Cache Backend. There are a number of bugs in that version that have been ignored so I decided to write my own version. The object cache has been pretty much been re-written but some of the best bits from Marks version has been cherry picked over to this version.
- Verify that you have PHP 5.2.4+ and a compatible APC version installed.
- Copy
object-cache.php
to your WordPress content directory (wp-content/
by default). - Done!
Maybe, but I'm not going to support them, and you shouldn't still be running them!
Define WP_APC_KEY_SALT
to something that is unique for each install (like an md5 of the MySQL host, database, and table prefix).
- BUGFIX: Fix
wp_cache_flush_site()
to flush global groups See
- BUGFIX: Fix site cache key not saving in
_set_cache_version()
See
- BUGFIX: Fix logic in
get_cache_version()
See
- NEW: Add
wp_cache_flush_site()
andwp_cache_flush_group()
See - NEW: Add
wp_cache_get_multi()
See - BUGFIX: If APC is not available then fallback to using non persistent cache See
- BUGFIX: Fix inverted logic in incr and decr functions See
- BUGFIX: On APC fetch convert arrayObject back to an array See
- Initial release