示例#1
0
 /**
  * Cleans cache.
  *
  * @param bool $only_expired				- Only clean expired entries
  */
 public function clean($only_expired = true)
 {
     if (!$only_expired) {
         $this->memcached->flush();
         $this->cleanNow();
         $this->events = array();
         if (self::$cacheLogging) {
             $this->logCacheAction(0, self::CACHE_LOG_CLEAR, $this->cachetype);
         }
     }
 }