Index: branches/5.1.x/core/units/permissions/permissions_tag_processor.php =================================================================== diff -u -N -r13086 -r13168 --- branches/5.1.x/core/units/permissions/permissions_tag_processor.php (.../permissions_tag_processor.php) (revision 13086) +++ branches/5.1.x/core/units/permissions/permissions_tag_processor.php (.../permissions_tag_processor.php) (revision 13168) @@ -1,6 +1,6 @@ Application->getCache('category_paths', $category_id); + $cache_key = 'category_paths[%CIDSerial:' . $category_id . '%]'; + + if ("$category_id" == '0') { + // home category name is phrase AND phrase name is defined in configuration + $cache_key .= '[%PhrasesSerial%][%ConfSerial%]'; + } + + $category_path = $this->Application->getCache($cache_key); + if ($category_path === false) { // not chached if ($category_id > 0) { @@ -198,8 +206,10 @@ else { $category_path = $this->Application->Phrase( $this->Application->ConfigValue('Root_Name') ); } - $this->Application->setCache('category_paths', $category_id, $category_path); + + $this->Application->setCache($cache_key, $category_path); } + return $category_path; }