XCachePlugin returns false value for cache miss
This commit is contained in:
parent
06b6a27d7d
commit
96480aa6c1
|
@ -63,8 +63,10 @@ class XCachePlugin extends Plugin
|
||||||
|
|
||||||
function onStartCacheGet(&$key, &$value)
|
function onStartCacheGet(&$key, &$value)
|
||||||
{
|
{
|
||||||
|
if (!xcache_isset($key)) {
|
||||||
|
$value = false;
|
||||||
|
} else {
|
||||||
$value = xcache_get($key);
|
$value = xcache_get($key);
|
||||||
if (!is_null($value)) {
|
|
||||||
$value = unserialize($value);
|
$value = unserialize($value);
|
||||||
}
|
}
|
||||||
Event::handle('EndCacheGet', array($key, &$value));
|
Event::handle('EndCacheGet', array($key, &$value));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user