diff --git a/lib/cache/cache.class.php b/lib/cache/cache.class.php index 3dfb2289d8..93b65bba7b 100644 --- a/lib/cache/cache.class.php +++ b/lib/cache/cache.class.php @@ -865,4 +865,16 @@ class cache $this->reset(); } + + /** + * 清空缓存。 + * Clear cache. + * + * @access public + * @return void + */ + public function clear + { + $this->cache->clear(); + } }