Skip to content

Commit

Permalink
Merge pull request #9 from l3rady/bug-fix/site-cache-key-not-saving
Browse files Browse the repository at this point in the history
Site cache key value not being stored correctly
  • Loading branch information
Scott Cariss committed May 11, 2015
2 parents cc54572 + 0bd9eaf commit 9dcaa96
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Contributors: l3rady<br/>
Donate link: [http://l3rady.com/donate][2]<br/>
Tags: APC, object cache, backend, cache, performance, speed<br/>
Requires at least: 3.3<br/>
Tested up to: 3.9.1<br/>
Stable tag: 1.1.1
Tested up to: 4.2.2<br/>
Stable tag: 1.1.2

WordPress APC Object Cache Backend provides a persistent memory-based backend for the WordPress object cache.

Expand Down Expand Up @@ -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]

Expand All @@ -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
[8]: https://github.com/l3rady/WordPress-APC-Object-Cache/pull/7
[9]: https://github.com/l3rady/WordPress-APC-Object-Cache/pull/9
6 changes: 3 additions & 3 deletions object-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 : [email protected])
/* Copyright 2015 Scott Cariss (email : [email protected])
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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 9dcaa96

Please sign in to comment.