You are here

function render_cache_page_init in Render cache 7.2

Implements hook_init().

As menu_execute_active_handler() runs before the page delivery, we fake the recursion level to prevent #post_render_cache functions to be called before.

File

modules/controller/render_cache_page/render_cache_page.module, line 18
Hook implementations and frequently used functions for render cache page module.

Code

function render_cache_page_init() {
  $rcc = render_cache_get_controller('page');
  if (!$rcc instanceof PageControllerInterface) {
    return;
  }

  // Delegate hook_init() to the render cache controller.
  $rcc
    ->hook_init();
}