Ejemplo n.º 1
0
 /**
  * clear the cache
  *
  * @since 3.0.0
  *
  * @param mixed $bundle key or collection of the bundle
  *
  * @return Cache
  */
 public function clear($bundle = null)
 {
     $cacheDirectory = new Directory();
     $cacheDirectory->init($this->_directory);
     if ($bundle) {
         $file = $this->_getFile($bundle);
         $cacheDirectory->remove($file);
     } else {
         $cacheDirectory->clear();
     }
     return $this;
 }