WordPress.org

Make WordPress Core

Changeset 27885 for branches/3.7


Ignore:
Timestamp:
04/01/2014 03:35:23 AM (6 years ago)
Author:
nacin
Message:

Core Updates: Fix a case where options (db_version specifically) can end up with stale values in the cache after a update is performed.

Merges [26448] and [26734] from 3.8 to the 3.7 branch.

props dd32.
fixes #26173.

Location:
branches/3.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.7

  • branches/3.7/src/wp-admin/includes/update-core.php

    r27882 r27885  
    887887    wp_remote_post($db_upgrade_url, array('timeout' => 60));
    888888
     889    // Clear the cache to prevent an update_option() from saving a stale db_version to the cache
     890    wp_cache_flush();
     891    // (Not all cache backends listen to 'flush')
     892    wp_cache_delete( 'alloptions', 'options' );
     893
    889894    // Remove working directory
    890895    $wp_filesystem->delete($from, true);
Note: See TracChangeset for help on using the changeset viewer.