src/Charcoal/Cache/Middleware/CacheMiddleware.php
private function isQueryIncluded(array $queryParams)
    {
        if (empty($queryParams)) {
            return true;
        }

        if ($this->includedQuery === '*') {
            return true;
        }

        if (empty($this->includedQuery) && !is_numeric($this->includedQuery)) {
            return false;
        }

        $includedParams = array_intersect_key($queryParams, array_flip((array)$this->includedQuery));
        return (count($includedParams) > 0);
    }
private function isQueryIncluded(array $queryParams)
    {
        if (empty($queryParams)) {
            return true;
        }

        if ($this->includedQuery === '*') {
            return true;
        }

        if (empty($this->includedQuery) && !is_numeric($this->includedQuery)) {
            return false;
        }

        $includedParams = array_intersect_key($queryParams, array_flip((array)$this->includedQuery));
        return (count($includedParams) > 0);
    }
private function isQueryIncluded ( array $ queryParams ) { if ( empty ( $ queryParams ) ) { return true ; } if ( $ this -> includedQuery === '*' ) { return true ; } if ( empty ( $ this -> includedQuery ) && ! is_numeric ( $ this -> includedQuery ) ) { return false ; } $ includedParams = array_intersect_key ( $ queryParams , array_flip ( ( array ) $ this -> includedQuery ) ) ; return ( count ( $ includedParams ) > 0 ) ; }
Determine if the request should be cached based on the URI query.

@param  array $queryParams The query parameters to verify.
@return boolean
Determine if the request should be cached based on the URI query .