Answer the question
In order to leave comments, you need to log in
What's wrong with caching?
Clarify about the cache, please. Here I need to cache some variable (array). I do it like this:
$cache = Cache::createInstance();
if ($cache->initCache(7200, 'mycache'))
$result = $cache->getVars();
else {
$result = ['key' => 'value'];
$cache->endDataCache($result);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question