mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-21 00:54:53 +08:00
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user