mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fix passing cache parameter (#17907)
This commit is contained in:

committed by
GitHub

parent
b7723aebcf
commit
0660011f53
@ -1141,7 +1141,7 @@ class Command extends Component
|
||||
if (is_array($info)) {
|
||||
/* @var $cache \yii\caching\CacheInterface */
|
||||
$cache = $info[0];
|
||||
$cacheKey = $this->getCacheKey($method, $fetchMode);
|
||||
$cacheKey = $this->getCacheKey($method, $fetchMode, '');
|
||||
$result = $cache->get($cacheKey);
|
||||
if (is_array($result) && isset($result[0])) {
|
||||
Yii::debug('Query result served from cache', 'yii\db\Command::query');
|
||||
|
Reference in New Issue
Block a user