You are here

function d8cache_emit_cache_max_age in Drupal 8 Cache Backport 7

Implements hook_emit_cache_max_age().

1 string reference to 'd8cache_emit_cache_max_age'
D8Cache::set in ./d8cache.cache.inc

File

./d8cache.module, line 59
Main module file for the D8 caching system backport.

Code

function d8cache_emit_cache_max_age($max_age) {
  $page_cache_max_age =& drupal_static(__FUNCTION__, array());

  // Store the emitted cache max_age for further use.
  $page_cache_max_age = $max_age;
}