src/Guzzle/Plugin/Cache/DefaultCacheStorage.php
protected function getCacheKey(RequestInterface $request)
    {
        // Allow cache.key_filter to trim down the URL cache key by removing generate query string values (e.g. auth)
        if ($filter = $request->getParams()->get('cache.key_filter')) {
            $url = $request->getUrl(true);
            foreach (explode(',', $filter) as $remove) {
                $url->getQuery()->remove(trim($remove));
            }
        } else {
            $url = $request->getUrl();
        }

        return $this->keyPrefix . md5($request->getMethod() . ' ' . $url);
    }
protected function getCacheKey(RequestInterface $request)
    {
        // Allow cache.key_filter to trim down the URL cache key by removing generate query string values (e.g. auth)
        if ($filter = $request->getParams()->get('cache.key_filter')) {
            $url = $request->getUrl(true);
            foreach (explode(',', $filter) as $remove) {
                $url->getQuery()->remove(trim($remove));
            }
        } else {
            $url = $request->getUrl();
        }

        return $this->keyPrefix . md5($request->getMethod() . ' ' . $url);
    }
protected function getCacheKey ( RequestInterface $ request ) { // Allow cache.key_filter to trim down the URL cache key by removing generate query string values (e.g. auth) if ( $ filter = $ request -> getParams ( ) -> get ( 'cache.key_filter' ) ) { $ url = $ request -> getUrl ( true ) ; foreach ( explode ( ',' , $ filter ) as $ remove ) { $ url -> getQuery ( ) -> remove ( trim ( $ remove ) ) ; } } else { $ url = $ request -> getUrl ( ) ; } return $ this -> keyPrefix . md5 ( $ request -> getMethod ( ) . ' ' . $ url ) ; }
Hash a request URL into a string that returns cache metadata

@param RequestInterface $request

@return string
Hash a request URL into a string that returns cache metadata