diff --git a/lib/base/dao/dao.class.php b/lib/base/dao/dao.class.php index 2e65468c71..8b7f97bb83 100644 --- a/lib/base/dao/dao.class.php +++ b/lib/base/dao/dao.class.php @@ -370,6 +370,18 @@ class baseDAO if(!empty($this->cache)) $this->cache->set($key, array(microtime(true), $value)); } + /** + * 清除缓存。 + * Clear the cache. + * + * @access public + * @return void + */ + public function clearCache() + { + if(!empty($this->cache)) $this->cache->clear(); + } + /** * 开始事务。 * Begin Transaction