mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	Fixed the issue that query cache returns the same data for the same SQL but different query methods
This commit is contained in:
		@ -21,6 +21,7 @@ Yii Framework 2 Change Log
 | 
				
			|||||||
- Bug: Fixed incorrect event name for `yii\jui\Spinner` (samdark)
 | 
					- Bug: Fixed incorrect event name for `yii\jui\Spinner` (samdark)
 | 
				
			||||||
- Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe)
 | 
					- Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe)
 | 
				
			||||||
- Bug: Fixed issue with tabular input on ActiveField::radio() and ActiveField::checkbox() (jom)
 | 
					- Bug: Fixed issue with tabular input on ActiveField::radio() and ActiveField::checkbox() (jom)
 | 
				
			||||||
 | 
					- Bug: Fixed the issue that query cache returns the same data for the same SQL but different query methods (qiangxue)
 | 
				
			||||||
- Enh #364: Improve Inflector::slug with `intl` transliteration. Improved transliteration char map. (tonydspaniard)
 | 
					- Enh #364: Improve Inflector::slug with `intl` transliteration. Improved transliteration char map. (tonydspaniard)
 | 
				
			||||||
- Enh #797: Added support for validating multiple columns by `UniqueValidator` and `ExistValidator` (qiangxue)
 | 
					- Enh #797: Added support for validating multiple columns by `UniqueValidator` and `ExistValidator` (qiangxue)
 | 
				
			||||||
- Enh #1293: Replaced Console::showProgress() with a better approach. See Console::startProgress() for details (cebe)
 | 
					- Enh #1293: Replaced Console::showProgress() with a better approach. See Console::startProgress() for details (cebe)
 | 
				
			||||||
 | 
				
			|||||||
@ -378,6 +378,7 @@ class Command extends \yii\base\Component
 | 
				
			|||||||
		if (isset($cache) && $cache instanceof Cache) {
 | 
							if (isset($cache) && $cache instanceof Cache) {
 | 
				
			||||||
			$cacheKey = [
 | 
								$cacheKey = [
 | 
				
			||||||
				__CLASS__,
 | 
									__CLASS__,
 | 
				
			||||||
 | 
									$method,
 | 
				
			||||||
				$db->dsn,
 | 
									$db->dsn,
 | 
				
			||||||
				$db->username,
 | 
									$db->username,
 | 
				
			||||||
				$rawSql,
 | 
									$rawSql,
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user