From 0307f74459128567982992f9832e0c187d61b7d3 Mon Sep 17 00:00:00 2001 From: Scott Cariss Date: Mon, 11 May 2015 15:18:22 +0100 Subject: [PATCH 1/2] Fix site cache key not saving --- object-cache.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/object-cache.php b/object-cache.php index 979d9cc..0eb5fff 100644 --- a/object-cache.php +++ b/object-cache.php @@ -3,12 +3,12 @@ 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.1 +Version: 1.1.2 Author: Scott Cariss Author URI: http://l3rady.com */ -/* Copyright 2014 Scott Cariss (email : scott@l3rady.com) +/* Copyright 2015 Scott Cariss (email : scott@l3rady.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -1095,7 +1095,7 @@ private function _set_np( $key, $var ) { * @return mixed */ private function _set_cache_version( $key, $version ) { - if ( !$this->apc_available ) { + if ( $this->apc_available ) { return apc_store( $key, $version ); } else { From 0bd9eaff63ef332e9f791fd65e33f47fd18687a1 Mon Sep 17 00:00:00 2001 From: Scott Cariss Date: Mon, 11 May 2015 15:20:25 +0100 Subject: [PATCH 2/2] Update readme --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ae3d22e..fe2fd3e 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: 3.9.1
-Stable tag: 1.1.1 +Tested up to: 4.2.2
+Stable tag: 1.1.2 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.2 ### ++ BUGFIX: Fix site cache key not saving in `_set_cache_version()` [See][9] + ### 1.1.1 ### + BUGFIX: Fix logic in `get_cache_version()` [See][7] @@ -64,4 +67,5 @@ Define `WP_APC_KEY_SALT` to something that is unique for each install (like an m [5]: https://github.com/l3rady/WordPress-APC-Object-Cache/pull/5 [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 \ No newline at end of file +[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