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

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

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

            return array_intersect_key($queryParams, array_flip((array)$this->includedQuery));
        }

        if (empty($this->ignoredQuery) && !is_numeric($this->ignoredQuery)) {
            return $queryParams;
        }

        return array_diff_key($queryParams, array_flip((array)$this->ignoredQuery));
    }
private function parseIgnoredParams(array $queryParams)
    {
        if (empty($queryParams)) {
            return $queryParams;
        }

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

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

            return array_intersect_key($queryParams, array_flip((array)$this->includedQuery));
        }

        if (empty($this->ignoredQuery) && !is_numeric($this->ignoredQuery)) {
            return $queryParams;
        }

        return array_diff_key($queryParams, array_flip((array)$this->ignoredQuery));
    }
private function parseIgnoredParams ( array $ queryParams ) { if ( empty ( $ queryParams ) ) { return $ queryParams ; } if ( $ this -> ignoredQuery === '*' ) { if ( $ this -> includedQuery === '*' ) { return $ queryParams ; } if ( empty ( $ this -> includedQuery ) && ! is_numeric ( $ this -> includedQuery ) ) { return [ ] ; } return array_intersect_key ( $ queryParams , array_flip ( ( array ) $ this -> includedQuery ) ) ; } if ( empty ( $ this -> ignoredQuery ) && ! is_numeric ( $ this -> ignoredQuery ) ) { return $ queryParams ; } return array_diff_key ( $ queryParams , array_flip ( ( array ) $ this -> ignoredQuery ) ) ; }
Returns the query parameters that are NOT ignored.

@param  array $queryParams The query parameters to filter.
@return array
Returns the query parameters that are NOT ignored .