Browse files

add to cache key category

  • Loading branch information...
1 parent 9bceff8 commit af55448312e9d52f545c54d7b07767cd564cfff7 devyatkov committed Jan 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 framework/i18n/CGettextMessageSource.php
View
2 framework/i18n/CGettextMessageSource.php
@@ -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);
}

0 comments on commit af55448

Please sign in to comment.