Fixed the issue that query cache returns the same data for the same SQL but different query methods

This commit is contained in:
Qiang Xue
2013-12-29 14:25:10 -05:00
parent 8c4b5874ff
commit 28dc23ddac
2 changed files with 2 additions and 0 deletions

View File

@ -378,6 +378,7 @@ class Command extends \yii\base\Component
if (isset($cache) && $cache instanceof Cache) {
$cacheKey = [
__CLASS__,
$method,
$db->dsn,
$db->username,
$rawSql,