From: Chris Han Date: Sun, 03 Oct 2010 01:03:57 +0000 Subject: Since the language can be independent of the config now, it needs to be a part of the cache key X-Git-Url: https://git.razvi.ro/?p=gitphp.git&a=commitdiff&h=ee883852efbbc53af38551edeaa3248ec6ac52ae --- Since the language can be independent of the config now, it needs to be a part of the cache key --- --- a/include/controller/ControllerBase.class.php +++ b/include/controller/ControllerBase.class.php @@ -125,11 +125,11 @@ */ private function GetCacheKeyPrefix() { - $cacheKeyPrefix = ''; + $cacheKeyPrefix = GitPHP_Resource::GetLocale(); $projList = GitPHP_ProjectList::GetInstance(); if ($projList) { - $cacheKeyPrefix = sha1(serialize($projList->GetConfig())); + $cacheKeyPrefix .= '|' . sha1(serialize($projList->GetConfig())); unset($projList); } if ($this->project) {