src/Vatsimphp/Sync/AbstractSync.php
protected function isCacheExpired()
    {
        $ts = filemtime($this->filePath);
        if (!$this->cacheOnly && time() - $ts >= $this->refreshInterval) {
            $this->log->debug("Cache content {$this->filePath} expired ({$this->refreshInterval})");

            return true;
        }

        return false;
    }
protected function isCacheExpired()
    {
        $ts = filemtime($this->filePath);
        if (!$this->cacheOnly && time() - $ts >= $this->refreshInterval) {
            $this->log->debug("Cache content {$this->filePath} expired ({$this->refreshInterval})");

            return true;
        }

        return false;
    }
protected function isCacheExpired ( ) { $ ts = filemtime ( $ this -> filePath ) ; if ( ! $ this -> cacheOnly && time ( ) - $ ts >= $ this -> refreshInterval ) { $ this -> log -> debug ( "Cache content {$this->filePath} expired ({$this->refreshInterval})" ) ; return true ; } return false ; }
Verify if file content is outdated based on
the file last modification timestamp.

@return bool
Verify if file content is outdated based on the file last modification timestamp .