Details
-
Bug
-
Resolution: Solved By
-
Blocker
-
17.2.0-rc-1
-
Unknown
-
N/A
-
N/A
-
Description
Steps to reproduce:
- Repeatedly access some pages of the wiki
- Monitor database queries
Expected result:
There are no documents loaded from the database as on repeated access, they are cached.
Actual result:
Lots of documents containing XClass definitions are repeatedly loaded from the database, like XWiki.DocumentSheetBinding
This is because due to a bug in the implementation of XWIKI-22782, cloning the XClass marks the document as dirty and since XWIKI-22892, this means that the cache isn't used anymore.
Attachments
Issue Links
- duplicates
-
XWIKI-23079 XWikiDocument#clone can switch the initial document dirty flag to true
-
- Closed
-