public function VarnishBackend::deleteTags in Varnish 8
File
- src/
Cache/ VarnishBackend.php, line 67
Class
Namespace
Drupal\varnish\CacheCode
public function deleteTags(array $tags) {
$tag_cache =& drupal_static('Drupal\\Core\\Cache\\CacheBackendInterface::tagCache', []);
$deleted_tags =& drupal_static('Drupal\\Core\\Cache\\DatabaseBackend::deletedTags', []);
foreach ($tags as $tag) {
// Only delete tags once per request unless they are written again.
if (isset($deleted_tags[$tag])) {
continue;
}
$deleted_tags[$tag] = TRUE;
unset($tag_cache[$tag]);
}
}