-
Notifications
You must be signed in to change notification settings - Fork 821
Boost: Add cleanup for expired concatenated file paths #44134
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
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 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Boost plugin: No scheduled milestone found for this plugin. If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage SummaryCoverage changed in 1 file.
1 file is newly checked for coverage.
Full summary · PHP report · JS report Coverage check overridden by
I don't care about code coverage for this PR
|
projects/plugins/boost/app/lib/minify/class-cleanup-stored-paths.php
Outdated
Show resolved
Hide resolved
LGTM besides the 2 comments, and works as expected once these are addressed. The suggestion code should also be updated to use |
It makes more sense for the option name to be a generic jetpack boost option, instead of a transient (which might be confusing). Co-authored-by: Liam Sarsfield <43409125+LiamSarsfield@users.noreply.github.com>
@LiamSarsfield thanks for the awesome idea with the offset! I've implemented the change in 9598f32. |
Fixes HOG-189
Proposed changes:
Other information:
Jetpack product discussion
HOG-189
Does this pull request change what data or activity we track or use?
no
Testing instructions:
Pre-requisites
jb-test-concat-cleanup
to trigger the script;jb_transient_c
(or run this SQL querySELECT * FROM
wp_optionsWHERE
option_nameLIKE '%jb_transient_c%'
. There should be 6 file path Boost transients:Test that cleanup works
WP Admin -> Tools -> Cron Events
and search forclean
to make sure thatjetpack_boost_minify_cron_cleanup_concat_paths
andjetpack_boost_minify_cron_cleanup_concat_paths_followup
are not in the list;Tools -> Cron Events
again and there should be an event calledjetpack_boost_minify_cron_cleanup_concat_paths
;Run Now
(to force schedule to run cleanup);Test that cleanup schedules are removed
Concatenate JS
andConcatenate CSS
;Tools -> Cron Events
and search forclean
to make sure thatjetpack_boost_minify_cron_cleanup_concat_paths
andjetpack_boost_minify_cron_cleanup_concat_paths_followup
are not in the list;Concatenate JS
orConcatenate CSS
active should remove the schedules up as well.