public function useCache($caching = null)
    {
        if (is_null($caching)) {
            return ($this->useCache && $this->getCache());
        }

        $this->useCache = (bool) $caching;

        return $this;
    }
public function useCache($caching = null)
    {
        if (is_null($caching)) {
            return ($this->useCache && $this->getCache());
        }

        $this->useCache = (bool) $caching;

        return $this;
    }
public function useCache ( $ caching = null ) { if ( is_null ( $ caching ) ) { return ( $ this -> useCache && $ this -> getCache ( ) ) ; } $ this -> useCache = ( bool ) $ caching ; return $ this ; }
Check if cache can be used in this request, or set caching for request.

Apply only to get requests.

@param bool|null $caching
@return self|bool
Check if cache can be used in this request or set caching for request .