From: Evan Prodromou Date: Mon, 4 Jan 2010 20:12:19 +0000 (-1000) Subject: XCachePlugin returns false value for cache miss X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=96480aa6c1abda95db272f7c0a2b0e96f17acc70;p=quix0rs-gnu-social.git XCachePlugin returns false value for cache miss --- diff --git a/plugins/XCachePlugin.php b/plugins/XCachePlugin.php index 8eed12cbc9..03cb0c06ea 100644 --- a/plugins/XCachePlugin.php +++ b/plugins/XCachePlugin.php @@ -63,8 +63,10 @@ class XCachePlugin extends Plugin function onStartCacheGet(&$key, &$value) { - $value = xcache_get($key); - if (!is_null($value)) { + if (!xcache_isset($key)) { + $value = false; + } else { + $value = xcache_get($key); $value = unserialize($value); } Event::handle('EndCacheGet', array($key, &$value));