From: Jan Schneider Date: Tue, 28 Dec 2010 13:10:12 +0000 (+0100) Subject: Use expireListCache(). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0746f93fc21855f99ceddcd01868f5f5bd1a8ad3;p=horde.git Use expireListCache(). --- diff --git a/framework/Share/lib/Horde/Share/Base.php b/framework/Share/lib/Horde/Share/Base.php index 846faa71f..0f19b9b74 100644 --- a/framework/Share/lib/Horde/Share/Base.php +++ b/framework/Share/lib/Horde/Share/Base.php @@ -449,7 +449,7 @@ abstract class Horde_Share_Base $this->_shareMap[$id] = $name; /* Reset caches that depend on unknown criteria. */ - $this->_listcache = array(); + $this->expireListCache(); } /** @@ -481,7 +481,7 @@ abstract class Horde_Share_Base unset($this->_cache[$share->getName()]); /* Reset caches that depend on unknown criteria. */ - $this->_listcache = array(); + $this->expireListCache(); $this->_removeShare($share); } @@ -612,7 +612,7 @@ abstract class Horde_Share_Base public function resetCache() { $this->_cache = $this->_shareMap = array(); - $this->setListCache(array()); + $this->expireListCache(); } /** @@ -634,7 +634,6 @@ abstract class Horde_Share_Base /** * Expire the current list cache. This would be needed anytime a share is * either added, deleted, had a change in owner, parent, or perms. - * */ public function expireListCache() {