Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • shared cache is used for all language, but only page name on currentĀ language is stored in it
  • there is no fallback to page translation on primary language in case if page isn't translated on current language
  • if user opens website on non-primary language on which page name isn't translated AND cache is missing, then this empty page name is saved into cache

Solution

In theĀ "\kNavigationBar::getCategoryParentPath" method:

  1. use "\kMultiLanguageHelper::getLanguages" to iterate over all enabled languages and query translations of used categories on all languages
  2. include language serial in cache key, to auto-reset cache when language is added/removed or primary language is changed
  3. set category text for a given language into category text from primary language, when category text on given language is missing

Related Tasks

Jira Legacy
serverSystem Jira
serverId513b375f-8291-3313-9d9f-704c39b1f915
keyINP-1736