protected function _hasBeenModified($file)
    {
        if (!isset($this->_cache_data[$file])) {
            return true;
        }

        if (filemtime($file) > $this->_cache_data['timestamp']) {
            return true;
        }

        $imports = $this->_cache_data[$file]['imports'];

        foreach ($imports as $import) {
            if ($this->_hasBeenModified($import)) {
                return true;
            }
        }

        return false;
    }
protected function _hasBeenModified($file)
    {
        if (!isset($this->_cache_data[$file])) {
            return true;
        }

        if (filemtime($file) > $this->_cache_data['timestamp']) {
            return true;
        }

        $imports = $this->_cache_data[$file]['imports'];

        foreach ($imports as $import) {
            if ($this->_hasBeenModified($import)) {
                return true;
            }
        }

        return false;
    }
protected function _hasBeenModified ( $ file ) { if ( ! isset ( $ this -> _cache_data [ $ file ] ) ) { return true ; } if ( filemtime ( $ file ) > $ this -> _cache_data [ 'timestamp' ] ) { return true ; } $ imports = $ this -> _cache_data [ $ file ] [ 'imports' ] ; foreach ( $ imports as $ import ) { if ( $ this -> _hasBeenModified ( $ import ) ) { return true ; } } return false ; }
Check if the file or any of the imported files within it has been modified since
the last time it was cached.

@param string $file The file to check

@return bool
Check if the file or any of the imported files within it has been modified since the last time it was cached .