A
A
Alexey2014-08-11 13:22:48
Yii
Alexey, 2014-08-11 13:22:48

Can't add value to cache?

I have this code in Yii2:

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

where,
$cacheKey = "Images::/2ws/dsasdsadas/",
$data = {simplehtmldom_1_5\simple_html_dom_node}[23]
DAY = 86400
$this->dependency = {yii\caching\DbDependency}[6]

The situation is this, does not add value to the cache, $success returns false.
What could be the problem, how to diagnose and cure it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2014-08-11
@azovl

The problem was in access to folders and files 775 was replaced by 777.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question