function d8cache_emit_cache_tags in Drupal 8 Cache Backport 7
Implements hook_emit_cache_tags().
1 string reference to 'd8cache_emit_cache_tags'
File
- ./
d8cache.module, line 45 - Main module file for the D8 caching system backport.
Code
function d8cache_emit_cache_tags($tags) {
$page_cache_tags =& drupal_static(__FUNCTION__, array());
if (variable_get('d8cache_emit_cache_tags', FALSE)) {
drupal_add_http_header('X-Drupal-Cache-Tags', implode(' ', $tags));
}
// Store the emitted cache tags for further use.
$page_cache_tags = $tags;
}