getNoCacheTagsFromCookie example



    /** * @param int $shopId * * @return bool */
    private function hasMatchingNoCacheCookie(Request $request$shopId)
    {
        $routeTags = $this->getNoCacheTagsForRequest($request$shopId);

        $cookieTags = $this->getNoCacheTagsFromCookie($request);

        // Has cookie tag?         return !empty(array_intersect($routeTags$cookieTags));
    }

    /** * Returns array of nocache-tags in the request cookie * * <code> * array ( * 0 => 'detail-1', * 1 => 'checkout-1', * ) * </code> * * @return array<string> */
Home | Imprint | This part of the site doesn't use cookies.