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

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

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

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

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

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

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

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