GettextMessageSource: added category name to cache key #1997

Merged
merged 1 commit into from Mar 5, 2013
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
@@ -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);
}