You are here

protected function PageController::getCacheHash in Render cache 7.2

Parameters

object $object:

array $context:

Return value

array

Overrides BaseController::getCacheHash

File

modules/controller/render_cache_page/src/RenderCache/Controller/PageController.php, line 83
Contains \Drupal\render_cache_page\RenderCache\Controller\PageController

Class

PageController
PageController - Provides render caching for page objects.

Namespace

Drupal\render_cache_page\RenderCache\Controller

Code

protected function getCacheHash($object, array $context) {

  // Simple 1 hour cache to begin with.
  $hash['expiration'] = round(time() / 3600);
  return $hash;
}