-
Notifications
You must be signed in to change notification settings - Fork 218
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
Closes #6474: Update maintenance LCP/ATF #6489
Closes #6474: Update maintenance LCP/ATF #6489
Conversation
2f0350e
to
9b098e8
Compare
1584ea4
to
127b57f
Compare
b271071
into
feature/lcp-above-the-fold-optimization
Related test plan https://wpmediaqa.testrail.io/index.php?/runs/view/845&group_by=cases:section_id&group_id=5031&group_order=asc For exploratory :
|
Here is the related test results: |
Step 4 of https://wpmediaqa.testrail.io/index.php?/tests/view/41770&group_by=cases:section_id&group_id=5031&group_order=asc worked for me 🤔 Probably @wp-media/qa-team can manually run those two steps to confirm for us 😬 |
After discussion with @piotrbak and checking, the test plan is OK for LCP/ATF and failing parts are also failing on trunk:
|
Description
Fixes #6474
Documentation
User documentation
This allow to delete old OR failed results from LCP / ATF.
The
rocket_atf_cleanup_interval
filter is a new feature introduced in this PR. It allows developers to modify the interval at which the Above The Fold (ATF) cleanup process considers a row to be old and therefore eligible for deletion. By default, this interval is set to 1 month. If a row'slast_accessed
date is more than 1 month ago, it will be deleted during the cleanup process. However, by using this filter, developers can change this interval. For example, if the interval is set to 2 months, then the cleanup process will delete rows where the last_accessed date is more than 2 months ago. Here's an example of how to use this filter:Technical documentation
schedule_atf_cleanup
method is used to schedule the 'above the fold' cleanup process to run daily. It checks if the cleanup process is already scheduled using thewp_next_scheduled
function. If it's not scheduled, it schedules the event using thewp_schedule_event
function.atf_cleanup
method is used to execute the 'above the fold' cleanup process. It calls thedelete_old_rows
method of the ATFTable class to delete the rows withfailed
status or not accessed since the interval.unschedule_atf_cleanup
method is used to unschedule theabove the fold
cleanup process. It gets the timestamp of the next scheduled cleanup using thewp_next_scheduled
function. If a timestamp is found, it unschedules the event using thewp_unschedule_event
functionType of change
Delete options that are not relevant.
New dependencies
Risks
Checklists
Feature validation
Documentation
Code style
Observability