src/Charcoal/Cache/Middleware/CacheMiddleware.php
private function isPathExcluded($path)
    {
        if ($this->excludedPath === '*') {
            return true;
        }

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

        foreach ((array)$this->excludedPath as $excluded) {
            if (preg_match('@' . $excluded . '@', $path)) {
                return true;
            }
        }

        return false;
    }
private function isPathExcluded($path)
    {
        if ($this->excludedPath === '*') {
            return true;
        }

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

        foreach ((array)$this->excludedPath as $excluded) {
            if (preg_match('@' . $excluded . '@', $path)) {
                return true;
            }
        }

        return false;
    }
private function isPathExcluded ( $ path ) { if ( $ this -> excludedPath === '*' ) { return true ; } if ( empty ( $ this -> excludedPath ) && ! is_numeric ( $ this -> excludedPath ) ) { return false ; } foreach ( ( array ) $ this -> excludedPath as $ excluded ) { if ( preg_match ( '@' . $ excluded . '@' , $ path ) ) { return true ; } } return false ; }
Determine if the request should NOT be cached based on the URI path.

@param  string $path The request path (route) to verify.
@return boolean
Determine if the request should NOT be cached based on the URI path .