CacheControl example

$this->installForm();

        return true;
    }

    /** * @return CacheControl */
    public function initCacheControl(Enlight_Event_EventArgs $args)
    {
        return new CacheControl(
            $this->get(SessionInterface::class),
            $this->get(CachedConfigReader::class)->getByPluginName('HttpCache'),
            $this->get(ContainerAwareEventManager::class),
            $this->get(DefaultRouteService::class),
            $this->get(CacheTimeServiceInterface::class),
            $this->get(CacheRouteGenerationService::class)
        );
    }

    /** * @return CacheIdCollector */
Home | Imprint | This part of the site doesn't use cookies.