concrete/src/Cache/Page/PageCache.php
public function shouldCheckCache(Request $req)
    {
        if ($req->getMethod() === $req::METHOD_POST) {
            return false;
        }

        $app = Application::getFacadeApplication();
        $config = $app->make('config');
        $cookie = $app->make('cookie');
        $loginCookie = sprintf('%s_LOGIN', $config->get('concrete.session.name'));
        if ($cookie->has($loginCookie) && $cookie->get($loginCookie)) {
            return false;
        }

        return true;
    }
public function shouldCheckCache(Request $req)
    {
        if ($req->getMethod() === $req::METHOD_POST) {
            return false;
        }

        $app = Application::getFacadeApplication();
        $config = $app->make('config');
        $cookie = $app->make('cookie');
        $loginCookie = sprintf('%s_LOGIN', $config->get('concrete.session.name'));
        if ($cookie->has($loginCookie) && $cookie->get($loginCookie)) {
            return false;
        }

        return true;
    }
public function shouldCheckCache ( Request $ req ) { if ( $ req -> getMethod ( ) === $ req :: METHOD_POST ) { return false ; } $ app = Application :: getFacadeApplication ( ) ; $ config = $ app -> make ( 'config' ) ; $ cookie = $ app -> make ( 'cookie' ) ; $ loginCookie = sprintf ( '%s_LOGIN' , $ config -> get ( 'concrete.session.name' ) ) ; if ( $ cookie -> has ( $ loginCookie ) && $ cookie -> get ( $ loginCookie ) ) { return false ; } return true ; }
Determine if we should check if a page is in the cache.

@param \Concrete\Core\Http\Request $req

@return bool
Determine if we should check if a page is in the cache .