Added the table name to the cacheKey used by DboSource::fields. #3394

This commit is contained in:
Sam Mousa 2012-11-24 12:22:17 +01:00
parent 0d29861423
commit 8ef3034482

View file

@ -2282,7 +2282,8 @@ class DboSource extends DataSource {
$virtualFields,
$fields,
$quote,
ConnectionManager::getSourceName($this)
ConnectionManager::getSourceName($this),
$model->table
);
$cacheKey = md5(serialize($cacheKey));
if ($return = $this->cacheMethod(__FUNCTION__, $cacheKey)) {