summaryrefslogtreecommitdiff
path: root/plugins/XCachePlugin.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-04 10:12:19 -1000
committerEvan Prodromou <evan@status.net>2010-01-04 10:12:19 -1000
commit96480aa6c1abda95db272f7c0a2b0e96f17acc70 (patch)
treee80a40da95bd37e82ed37920d14cc5c158e7e695 /plugins/XCachePlugin.php
parent06b6a27d7d31cb0680dffff70c498e27ece56762 (diff)
XCachePlugin returns false value for cache miss
Diffstat (limited to 'plugins/XCachePlugin.php')
-rw-r--r--plugins/XCachePlugin.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/XCachePlugin.php b/plugins/XCachePlugin.php
index 8eed12cbc..03cb0c06e 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));