-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle ResaveElements job #45
Comments
Thanks for the suggestion. In Audit, I see that you're listening for the |
Yes, I create a log record when the queue job starts, saves the id of that entry to the cache, and while the resave is going on, any records created will be grouped by that parent entry. Once the job ends/fails, it removes that parent id and saves a final record. |
Thanks, I'll add this to the list. |
This has been addressed in 1.10.0. |
When ResaveElements is firing, Blitz is going to listen to that and potentially add lots of jobs for every single elements. If a big section is being resaved, that will be a lot of jobs.
Instead, Blitz should patiently wait until the resave is done, tally up all the elements to work with, then fire off job(s).
In Audit, I listen for a few events to control when a resave start and ends.
In other plugins I have taken this further, and uses the cache to save element references while the resave is going on, then process the elements at the end.
The text was updated successfully, but these errors were encountered: