Browse Source

Merge pull request #762 from lancecoder/patch-6

Update caching.md
tags/2.0.0-beta
Alexander Makarov 12 years ago
parent
commit
01ace04bf0
  1. 2
      docs/guide/caching.md

2
docs/guide/caching.md

@ -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;
} }

Loading…
Cancel
Save