Ejemplo n.º 1
0
 /**
  * Disable cache hash if the action is not cacheable
  * and pointed to from an already uncached request
  *
  * @param array $controllerArguments the current controller arguments
  * @return void
  */
 protected function disableCacheHashForNonCacheableAction(array $controllerArguments)
 {
     if (isset($controllerArguments['action']) && $this->getUseCacheHash()) {
         $actionIsCacheable = $this->extensionService->isActionCacheable(NULL, NULL, $controllerArguments['controller'], $controllerArguments['action']);
         $isRequestCached = $this->request instanceof WebRequest && $this->request->isCached();
         $this->setUseCacheHash($isRequestCached || $actionIsCacheable);
     }
 }