Networking\InitCmsBundle\Lib\PhpCache::isCacheable PHP Method

isCacheable() public method

public isCacheable ( Request $request, $user ) : boolean
$request Symfony\Component\HttpFoundation\Request
$user
return boolean
    public function isCacheable(Request $request, $user)
    {
        if ($this->active == false) {
            return false;
        }
        if ($this->env != 'prod') {
            return false;
        }
        if ($user) {
            return false;
        }
        if ($request->getMethod() != 'GET') {
            return false;
        }
        return true;
    }