Skip to content

Commit

Permalink
Added the table name to the cacheKey used by DboSource::fields. #3394
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Nov 24, 2012
1 parent 0d29861 commit 8ef3034
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/Model/Datasource/DboSource.php
Expand Up @@ -2282,7 +2282,8 @@ public function fields(Model $model, $alias = null, $fields = array(), $quote =
$virtualFields,
$fields,
$quote,
ConnectionManager::getSourceName($this)
ConnectionManager::getSourceName($this),
$model->table
);
$cacheKey = md5(serialize($cacheKey));
if ($return = $this->cacheMethod(__FUNCTION__, $cacheKey)) {
Expand Down

0 comments on commit 8ef3034

Please sign in to comment.