yiisoft/yii2 — pull request #6271 by grachov (2014-11-26 15:44:38+00:00)
Title: Fixed query caching

It seems to me that query caching should take into account the `$fetchMode` also because without it those code will return same result while it should be different:
```php
var_dump(Model::getDb()->cache(function () {
return Model::find()->select('id')->column();
}, 0));

var_dump(Model::getDb()->cache(function () {
return Model::find()->select('id')->asArray()->all();
}, 0));
```