Skip to content

Commit

Permalink
add to cache key category
Browse files Browse the repository at this point in the history
  • Loading branch information
devyatkov committed Jan 17, 2013
1 parent 9bceff8 commit af55448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/i18n/CGettextMessageSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected function loadMessages($category, $language)

if ($this->cachingDuration > 0 && $this->cacheID!==false && ($cache=Yii::app()->getComponent($this->cacheID))!==null)
{
$key = self::CACHE_KEY_PREFIX . $messageFile;
$key = self::CACHE_KEY_PREFIX . $messageFile . "." . $category;
if (($data=$cache->get($key)) !== false)
return unserialize($data);
}
Expand Down

0 comments on commit af55448

Please sign in to comment.