diff --git a/README.md b/README.md index fe2fd3e..02bc3a6 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ Contributors: l3rady
Donate link: [http://l3rady.com/donate][2]
Tags: APC, object cache, backend, cache, performance, speed
Requires at least: 3.3
-Tested up to: 4.2.2
-Stable tag: 1.1.2 +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. @@ -40,6 +40,9 @@ Define `WP_APC_KEY_SALT` to something that is unique for each install (like an m ## Changelog ## +### 1.1.3 ### ++ BUGFIX: Fix `wp_cache_flush_site()` to flush global groups [See][10] + ### 1.1.2 ### + BUGFIX: Fix site cache key not saving in `_set_cache_version()` [See][9] @@ -68,4 +71,5 @@ Define `WP_APC_KEY_SALT` to something that is unique for each install (like an m [6]: https://github.com/l3rady/WordPress-APC-Object-Cache/pull/2 [7]: https://github.com/l3rady/WordPress-APC-Object-Cache/pull/1 [8]: https://github.com/l3rady/WordPress-APC-Object-Cache/pull/7 -[9]: https://github.com/l3rady/WordPress-APC-Object-Cache/pull/9 \ No newline at end of file +[9]: https://github.com/l3rady/WordPress-APC-Object-Cache/pull/9 +[10]: https://github.com/l3rady/WordPress-APC-Object-Cache/pull/10 \ No newline at end of file diff --git a/object-cache.php b/object-cache.php index 0eb5fff..8707f22 100644 --- a/object-cache.php +++ b/object-cache.php @@ -3,7 +3,7 @@ Plugin Name: WordPress APC Object Cache Backend Plugin URI: https://github.com/l3rady/WordPress-APC-Object-Cache Description: APC backend for WordPress' Object Cache -Version: 1.1.2 +Version: 1.1.3 Author: Scott Cariss Author URI: http://l3rady.com */ @@ -663,6 +663,11 @@ public function flush_sites( $sites ) { $sites = array( $this->blog_prefix ); } + // Add global groups (site 0) to be flushed. + if ( !in_array( 0, $sites ) ) { + $sites[] = 0; + } + foreach ( $sites as $site ) { $version = $this->_get_site_cache_version( $site ); $version++;