tollmanz / wordpress-pecl-memcached-object-cache

A WordPress object cache that uses the memcached (not memcache) PECL extension.
233 stars 114 forks source link

Generational cache for WP MU #78

Open ulkoalex opened 8 years ago

ulkoalex commented 8 years ago

It allows to purge cache for a single blog, leaving cache of all other blogs intact.

To clean cache for a single blog use the following code:

global $wp_object_cache, $blog_id;

$wp_object_cache->reset_generation($blog_id);