Make WordPress Core


Ignore:
Timestamp:
12/06/2013 06:59:29 PM (11 years ago)
Author:
nacin
Message:

Core updates: Explicitly call wp_cache_delete() after a DB upgrade, as not all cache backends allow the entire backend to be flushed.

props dd32.
fixes #26173.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update-core.php

    r26448 r26734  
    895895    // Clear the cache to prevent an update_option() from saving a stale db_version to the cache
    896896    wp_cache_flush();
     897    // (Not all cache backends listen to 'flush')
     898    wp_cache_delete( 'alloptions', 'options' );
    897899
    898900    // Remove working directory
Note: See TracChangeset for help on using the changeset viewer.