$this->_shareMap[$id] = $name;
/* Reset caches that depend on unknown criteria. */
- $this->_listcache = array();
+ $this->expireListCache();
}
/**
unset($this->_cache[$share->getName()]);
/* Reset caches that depend on unknown criteria. */
- $this->_listcache = array();
+ $this->expireListCache();
$this->_removeShare($share);
}
public function resetCache()
{
$this->_cache = $this->_shareMap = array();
- $this->setListCache(array());
+ $this->expireListCache();
}
/**
/**
* 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()
{