isFresh() публичный Метод

This method always returns true when the cache file exists.
public isFresh ( ) : boolean
Результат boolean true if the cache is fresh, false otherwise
Пример #1
0
 /**
  * Returns system collections.
  *
  * @return array
  */
 private function getSystemCollections()
 {
     if (!$this->systemCollections) {
         if (!$this->cache->isFresh()) {
             $systemCollections = $this->buildSystemCollections($this->locale, $this->getUserId());
             $this->cache->write($systemCollections);
         }
         $this->systemCollections = $this->cache->read();
     }
     return $this->systemCollections;
 }