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) {