Ejemplo n.º 1
0
 /**
  * Deletes the cache
  *
  * @return bool|int
  */
 public function delete()
 {
     if ($this->storage === null) {
         return false;
     }
     $this->writeDebug();
     $deletedSize = $this->storage->delete();
     if ($deletedSize !== false && $this->storage->shouldCountQuota()) {
         \CHTMLPagesCache::writeStatistic(0, 0, 0, 0, -$deletedSize);
     }
     return $deletedSize;
 }