From 207a4cd9b897884a4e7eb371748e3117a4f026da Mon Sep 17 00:00:00 2001 From: lancecoder Date: Wed, 14 Aug 2013 14:06:56 +0000 Subject: [PATCH] Update caching.md --- docs/guide/caching.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/caching.md b/docs/guide/caching.md index bc36331..422441c 100644 --- a/docs/guide/caching.md +++ b/docs/guide/caching.md @@ -119,7 +119,7 @@ public function getCachedData() $value = Yii::$app->getCache()->get($key); if ($value === false) { $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; }