71 $cacheName = $this->getCacheName();
72 if (isset(static::$staticCache[$cacheName]))
74 return static::$staticCache[$cacheName];
76 if ($this->cache->initCache(self::CACHE_TTL, $cacheName, $this->getCacheDir()))
78 $result = $this->cache->getVars();
79 static::$staticCache[$cacheName] = $result;
87 $cacheName = $this->getCacheName();
89 $this->cache->clean($cacheName, $this->getCacheDir());
91 $this->cache->initCache(self::CACHE_TTL, $cacheName, $this->getCacheDir());
92 $this->cache->startDataCache();
93 $this->cache->endDataCache($value);
94 static::$staticCache[$cacheName] = $value;