WordPress.org

Make WordPress Core

Ticket #27669: 27669.diff

File 27669.diff, 731 bytes (added by kraftbj, 5 years ago)

flush cache on multisite network upgrade db ver bump

  • src/wp-admin/network/upgrade.php

     
    5353                         */
    5454                        global $wp_db_version;
    5555                        update_site_option( 'wpmu_upgrade_site', $wp_db_version );
     56                        wp_flush_cache();
     57                        // Not all cache backends respect wp_flush_cache(). Related: https://core.trac.wordpress.org/changeset/26734
     58                        wp_cache_delete( 'alloptions', 'site-options' );
    5659                }
    5760
    5861                $blogs = $wpdb->get_results( "SELECT blog_id FROM {$wpdb->blogs} WHERE site_id = '{$wpdb->siteid}' AND spam = '0' AND deleted = '0' AND archived = '0' ORDER BY registered DESC LIMIT {$n}, 5", ARRAY_A );