function _d8cache_cache_tags_invalidate_cache in Drupal 8 Cache Backport 7
Invalidate a tag from the cache tags cache.
Parameters
string $tag: The tag to invalidate.
2 calls to _d8cache_cache_tags_invalidate_cache()
- d8cache_do_invalidate_cache_tags in ./
d8cache.module - Perform cache tag invalidations. Must do outside of a transaction.
- d8cache_OLD_invalidate_cache_tags in ./
d8cache.module - Backwards compatible version of d8cache_invalidate_cache_tags(). This will automatically be used when the core patch to implement end of transaction callbacks is missing.
File
- ./
d8cache.module, line 362 - Main module file for the D8 caching system backport.
Code
function _d8cache_cache_tags_invalidate_cache($tag) {
if (!variable_get('d8cache_use_cache_tags_cache', FALSE)) {
return;
}
cache_clear_all($tag, 'cache_d8cache_cache_tags');
}