- Affected version
- 2.2.7
The
This can result in the same content continuously being reverted if it has many edits, which can consume significant amounts of memory if the content has been spammed significantly. Worse, the more attempts at reverting edits, the worse the problem gets.
This job should only make one revert for per piece of content, and should actively flushing the entity cache to ensure the memory overhead is kept low.
The use case is I had a user who has repeatedly edited many posts upto the content limit several hundred times each in a very short window. This resulting in about ~512mb of memory usage trying to use the admin tools to revert the edits.
UserRevertMessageEdit
job finds all edits a user has made in a timeframe and then reverts in reverse order. Then for each revert, it loads all edits for the linked content.This can result in the same content continuously being reverted if it has many edits, which can consume significant amounts of memory if the content has been spammed significantly. Worse, the more attempts at reverting edits, the worse the problem gets.
This job should only make one revert for per piece of content, and should actively flushing the entity cache to ensure the memory overhead is kept low.
The use case is I had a user who has repeatedly edited many posts upto the content limit several hundred times each in a very short window. This resulting in about ~512mb of memory usage trying to use the admin tools to revert the edits.
Last edited: