]> source.dussan.org Git - nextcloud-server.git/commitdiff
xcache_unset_by_prefix() returns feedback, return it.
authorAndreas Fischer <bantu@owncloud.com>
Thu, 15 Aug 2013 01:36:42 +0000 (03:36 +0200)
committerAndreas Fischer <bantu@owncloud.com>
Thu, 15 Aug 2013 01:36:42 +0000 (03:36 +0200)
lib/memcache/xcache.php

index 91b9810cc6b6de77c1d4253da1d507b5a08f8f85..115603109c9ec48557e3997f8d08d984154b56b1 100644 (file)
@@ -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);