protected function FileSystemBackend::invalidateItem in File Cache 8
Invalidates the given cache item.
Parameters
object $item: The cache item.
Throws
\Exception Thrown when the invalidated item cannot be saved.
1 call to FileSystemBackend::invalidateItem()
- FileSystemBackend::invalidateAll in src/
Cache/ FileSystemBackend.php - Marks all cache items as invalid.
File
- src/
Cache/ FileSystemBackend.php, line 392
Class
- FileSystemBackend
- A cache backend that stores cache items as files on the file system.
Namespace
Drupal\filecache\CacheCode
protected function invalidateItem(\stdClass $item) {
$item->expire = $this
->getRequestTime() - 1;
$this
->set($item->cid, $item->data, $item->expire, $item->tags);
}