From 0746f93fc21855f99ceddcd01868f5f5bd1a8ad3 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 28 Dec 2010 14:10:12 +0100 Subject: [PATCH] Use expireListCache(). --- framework/Share/lib/Horde/Share/Base.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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() { -- 2.11.0