public function getCachePolicy()
    {
        if (!empty($this->response))
        {
            $policy = $this->response->getCachePolicy();
            if (!empty($policy))
                return $policy;
        }
        return $this->cache_policy;
    }
public function getCachePolicy()
    {
        if (!empty($this->response))
        {
            $policy = $this->response->getCachePolicy();
            if (!empty($policy))
                return $policy;
        }
        return $this->cache_policy;
    }
public function getCachePolicy ( ) { if ( ! empty ( $ this -> response ) ) { $ policy = $ this -> response -> getCachePolicy ( ) ; if ( ! empty ( $ policy ) ) return $ policy ; } return $ this -> cache_policy ; }
Returns the cache policy for this result. If the response has a cache policy,
it is used. Otherwise, any cache policy set on the result itself is used.

@return CachePolicy The cache policy
Returns the cache policy for this result . If the response has a cache policy it is used . Otherwise any cache policy set on the result itself is used .