Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

Fix for Object Cache 'Get' method incorrectly setting cache value #439

Merged
merged 2 commits into from
Mar 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ObjectCache_WpObjectCache_Regular.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ function get( $id, $group = 'default', $force = false, &$found = null ) {
$found = ( $value !== false );
}

$this->cache[$key] = $value;
$this->cache_total++;

if ( $value !== false ) {
$this->cache[$key] = $value;
$this->cache_hits++;
} else {
$this->cache_misses++;
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@ Type | More Information |
:beetle: Bug Fix | [Closure Compiler fix for JAVA path](https://github.com/szepeviktor/w3-total-cache-fixed/pull/428) |
:beetle: Bug Fix | [Fixed Redis Test on Admin Dashboard](https://github.com/szepeviktor/w3-total-cache-fixed/pull/430) |
:cyclone: New Feature | [Extends "http 2 push" to page cache enhanced](https://github.com/szepeviktor/w3-total-cache-fixed/pull/433) |
:beetle: Bug Fix | [Fixed Object Cache setting cache value on missed gets](https://github.com/szepeviktor/w3-total-cache-fixed/issues/438) |