From 341d9caf79531b636e6db37a18e46df8c0eadbb4 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Thu, 15 Aug 2013 03:36:42 +0200 Subject: [PATCH] xcache_unset_by_prefix() returns feedback, return it. --- lib/memcache/xcache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/memcache/xcache.php b/lib/memcache/xcache.php index 91b9810cc6..115603109c 100644 --- a/lib/memcache/xcache.php +++ b/lib/memcache/xcache.php @@ -38,7 +38,7 @@ class XCache extends Cache { public function clear($prefix='') { if (function_exists('xcache_unset_by_prefix')) { - xcache_unset_by_prefix($this->getNamespace().$prefix); + return xcache_unset_by_prefix($this->getNamespace().$prefix); } else { // Since we can not clear by prefix, we just clear the whole cache. xcache_clear_cache(\XC_TYPE_VAR, 0);