fix: refresh Divi clone generated caches#1432
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (2)
📝 WalkthroughWalkthrough
ChangesDivi Cache Invalidation
Upload Path-Segment Replacement in Site Duplication
Sequence Diagram(s)sequenceDiagram
participant Caller
participant clear_divi_static_css_cache
participant delete_divi_cloned_css_post_meta
participant delete_divi_cloned_css_options
participant get_divi_static_css_cache_directories
participant delete_divi_static_css_cache_directory
participant flush_divi_cloned_site_page_cache
Caller->>clear_divi_static_css_cache: call(site_id)
clear_divi_static_css_cache->>delete_divi_cloned_css_post_meta: delete Divi CSS post meta on cloned blog
clear_divi_static_css_cache->>delete_divi_cloned_css_options: delete Divi CSS options on cloned blog
clear_divi_static_css_cache->>get_divi_static_css_cache_directories: enumerate {root, dir} entries
get_divi_static_css_cache_directories-->>clear_divi_static_css_cache: network + legacy + uploads fallback entries
loop each {root, dir} entry
clear_divi_static_css_cache->>delete_divi_static_css_cache_directory: delete(dir, cache_root)
end
clear_divi_static_css_cache->>flush_divi_cloned_site_page_cache: trigger wu_flush_known_caches
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Rebase needed — PR has merge conflicts and no
|
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
Summary
Verification
Notes
Merged via PR #1432 to main. aidevops.sh v3.20.85 spent 19m on this as a headless bash routine. |
Summary
wp-content/uploads/sites/{template_blog_id}references with the cloned blog ID during database replacement, including JSON-escaped paths.Verification
php -l inc/duplication/data.php && php -l inc/compat/class-general-compat.php && php -l tests/WP_Ultimo/General_Compat_Test.php && php -l tests/WP_Ultimo/Duplication/MUCD_Data_Test.phpvendor/bin/phpcs inc/compat/class-general-compat.php inc/duplication/data.phpvendor/bin/phpstan analyse inc/compat/class-general-compat.php inc/duplication/data.php tests/WP_Ultimo/General_Compat_Test.php tests/WP_Ultimo/Duplication/MUCD_Data_Test.phpwu_flush_known_cachesfired during duplication.wp-content/uploads/sites/25to the new clone upload path.et-core-unified-deferred-5.min.cssfor the clone returned 200 and contained the previously missing Divi rules:padding-top:20vh,.et_pb_image_0, andposition:absolute!important.Notes
wp-tests-config.phpis missing.tests/WP_Ultimo/Duplication/MUCD_Data_Test.phpstill reports pre-existing test-file style issues outside this patch.Summary by CodeRabbit
Bug Fixes
Tests
Chores