Skip to content

Commit 1b85ea2

Browse files
author
Ian Jenkins
committed
Set found to true when using non persistent group.
Fixes #61.
1 parent 94ebea0 commit 1b85ea2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

object-cache.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,9 @@ function set( $id, $data, $group = 'default', $expire = 0 ) {
508508
];
509509

510510
if ( in_array( $group, $this->no_mc_groups ) ) {
511-
$this->group_ops_stats( 'set_local', $key, $group, null, null );
511+
$this->group_ops_stats( 'set_local', $key, $group, null, null );
512+
// If using a non persistent group it will never be in memcache but will be found in our local cache so set found to true.
513+
$this->cache[ $key ]['found'] = true;
512514

513515
return true;
514516
}

0 commit comments

Comments
 (0)