This issue concerns the following line of code:
|
XWikiDocument previousVersionDoc = revisionProvider.getRevision(document, previousVersion); |
When looking for task macros that were deleted from the page, we retrieve the previous document version from the database which is not very efficient.
document.getOriginalDocument() method offers the document in the state before the changes were made and retrieves it from memory.
This issue concerns the following line of code:
application-task/application-task-default/src/main/java/com/xwiki/task/internal/TaskMacroUpdateEventListener.java
Line 160 in 0aa8e6e
When looking for task macros that were deleted from the page, we retrieve the previous document version from the database which is not very efficient.
document.getOriginalDocument()method offers the document in the state before the changes were made and retrieves it from memory.