Commit 207a4cd9 by lancecoder

Update caching.md

parent 669dc5b3
...@@ -119,7 +119,7 @@ public function getCachedData() ...@@ -119,7 +119,7 @@ public function getCachedData()
$value = Yii::$app->getCache()->get($key); $value = Yii::$app->getCache()->get($key);
if ($value === false) { if ($value === false) {
$value = /* regenerate value because it is not found in cache and then save it in cache for later use */; $value = /* regenerate value because it is not found in cache and then save it in cache for later use */;
Yii::$app->cache->set($id, $value); Yii::$app->cache->set($key, $value);
} }
return $value; return $value;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment