-
Notifications
You must be signed in to change notification settings - Fork 809
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
Boost: Cleanup minify schedules on deactivation #41667
base: trunk
Are you sure you want to change the base?
Conversation
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Boost plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage SummaryCoverage changed in 3 files.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just so we don't forget it.
As per the discussion in slack, we need to clear the static cleanup schedule as well.
ec6897d
to
0944a29
Compare
Minify changes introduced yesterday were moved to a separate PR to avoid scope creep here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
During my testing, I found that the schedule for jetpack_boost_minify_cron_cache_cleanup
is not registering. Please do not merge until I find out more about the issue.
The cron wasn't registering during my tests. I am not sure if it's this PR or trunk. But, I found that the overall gc cron for minify was confusing because it was referencing both the legacy directory and new static cache directory at the same time. So, I've tried to refactor this a little bit and fix the cron registration issue in 83a9509.
The 404 tester and cache clean up need to be unscheduled if neither of the concatenation modules is active. This PR checks that and removes the scheduled jobs.
Proposed changes:
jetpack_boost_404_tester_cron
andjetpack_boost_minify_cron_cache_cleanup
scheduled events if not.Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
jetpack_boost_404_tester_cron
andjetpack_boost_minify_cron_cache_cleanup
events are scheduled daily;