A
A
Alexey2014-08-12 13:44:46
Yii
Alexey, 2014-08-12 13:44:46

Problem with the cache, I save, but I can't get it?

Colleagues, a strange situation, in the Yii framework (version 2, working with the cache is not very different from version 1) I have the following code:

$success = Yii::$app->cache->set($cacheKey, $dataSelector, DAY, $this->dependency);

Returns $success = true;
Cache key on save:
"Im::div.content::/2-news/post-4-vvfew-we-few/"
When the page is called again, the cache request goes:
$dataSelector = Yii::$app->cache->get($cacheKey);
With the previous key:
"Im::div.content::/2-news/post-4-vvfew-we-few/"
But returns $dataSelector = false
What could be the problem and how to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
v0lume, 2014-08-12
@azovl

write to the issue tracker on github, they will probably give you an answer as soon as possible

_
_ _, 2014-08-12
@AMar4enko

Look through the repository for a documented bug? It's not even RC yet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question