function hook_emit_cache_tags in Drupal 8 Cache Backport 7
Allows to react to emitting a cache tags header.
Parameters
array $tags: The tags to emit to the reverse proxy.
1 function implements hook_emit_cache_tags()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- d8cache_emit_cache_tags in ./
d8cache.module - Implements hook_emit_cache_tags().
1 invocation of hook_emit_cache_tags()
File
- ./
d8cache.api.php, line 14 - API documentation for D8Cache.
Code
function hook_emit_cache_tags($tags) {
drupal_add_http_header('Surrogate-Key', implode(' ', $tags));
}