Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions wp-cache-phase2.php
Original file line number Diff line number Diff line change
Expand Up @@ -3089,6 +3089,10 @@ function wp_cache_clear_cache_on_menu() {
function wp_cache_clear_cache( $blog_id = 0 ) {
global $cache_path;

// Normalize non-integer callers (e.g. 'all', false) to 0 so they take the
// single-site path instead of reaching get_blog_option() via the blog branch.
$blog_id = (int) $blog_id;

if ( $blog_id == 0 ) {
wp_cache_debug( 'Clearing all cached files in wp_cache_clear_cache()', 4 );
prune_super_cache( $cache_path . 'supercache/', true );
Expand Down
Loading