Skip to content
Permalink
Browse files

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

  • Loading branch information...
SamMousa committed Nov 24, 2012
1 parent 0d29861 commit 8ef30344825686e9bdce78caccc87c0b75a6cf2e
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Cake/Model/Datasource/DboSource.php
@@ -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)) {

0 comments on commit 8ef3034

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.