Index: branches/5.1.x/units/link_validation/link_validation_tp.php =================================================================== diff -u -N -r13095 -r13165 --- branches/5.1.x/units/link_validation/link_validation_tp.php (.../link_validation_tp.php) (revision 13095) +++ branches/5.1.x/units/link_validation/link_validation_tp.php (.../link_validation_tp.php) (revision 13165) @@ -1,6 +1,6 @@ getObject($params); $category_id = isset($params['cat_id']) ? $params['cat_id'] : $object->GetDBField('CategoryId'); - $category_path = $this->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) { - $cached_navbar = preg_replace('/^(Content&\|&|Content)/i', '', $object->GetDBField('CachedNavbar')); $category_path = trim($this->CategoryName( Array('cat_id' => 0) ).' > '.str_replace('&|&', ' > ', $cached_navbar), ' > '); } 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; } } \ No newline at end of file