Steps to reproduce :
- Edit a unified document that has multiple language version
- Move any section to another place in the sections tree
- Save
- Switch to another language
Observed :
- The section is not moved in content, but well-placed in table of content.
- The content is correct after 24h delay
This is caused by the use of a cache macro around the content. The cache id does not update in another language than the default wiki language. The cache id is built this way :
#set($cacheId = "$!{doc.fullName}-$!{locale}-$!{lastUnifiedDocumentUpdate}-$!{lastSectionUpdate}-$!{xcontext.action}")
The issue come from the use of tdoc because translated document does not have modification registered in history when Sections objects are modified. The solution is to add a new key in the cache id string to identify last change in the main document. |