23 public static function remember(
string $cacheId,
int $ttl, callable $callback)
25 $cachePath = self::CACHE_ROOT .
'/' . $cacheId;
26 $manager = Application::getInstance()->getCache();
27 if (
$manager->initCache($ttl, $cacheId, $cachePath))
30 return $cached[
'PROXY'];