invalidateWithStore example


    private function invalidate(?string $cacheId = null): bool
    {
        $proxyUrl = trim((string) $this->Config()->get('proxy', ''));
        if ($proxyUrl !== '') {
            return $this->invalidateWithBANRequest($proxyUrl$cacheId);
        }

        if ($this->get('service_container')->has('httpcache')) {
            return $this->invalidateWithStore($cacheId);
        }

        // If no explicit proxy was configured + no host is configured         $proxyUrl = $this->getProxyUrl($this->request);
        if ($proxyUrl !== null) {
            return $this->invalidateWithBANRequest($proxyUrl$cacheId);
        }

        return false;
    }

    
Home | Imprint | This part of the site doesn't use cookies.