You are here

public function BoostCache::delete in Boost 8

Delete individual cache file.

File

src/BoostCache.php, line 92
Contains Drupal\boost\BoostCache

Class

BoostCache
The BoostCache class.

Namespace

Drupal\boost

Code

public function delete() {
  $uri = $this->route
    ->getUri();
  if (!file_exists($uri)) {
    return false;
  }
  return $this->handler
    ->deleteCache($uri);
}