Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FilesystemCache.php

function FilesystemCache::remove

Overrides RemovableCacheInterface::remove

File

vendor/twig/twig/src/Cache/FilesystemCache.php, line 79

Class

FilesystemCache
Implements a cache on the filesystem.

Namespace

Twig\Cache

Code

public function remove(string $name, string $cls) : void {
    $key = $this->generateKey($name, $cls);
    if (!@unlink($key) && file_exists($key)) {
        throw new \RuntimeException(\sprintf('Failed to delete cache file "%s".', $key));
    }
}
RSS feed
Powered by Drupal