Make WordPress Core


Ignore:
Timestamp:
09/06/2013 01:32:09 AM (12 years ago)
Author:
dd32
Message:

Upgrader: Make clearing the Plugin and Theme update caches optional during install and upgrade proceedures. See #22704

File:
1 edited

Legend:

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

    r25081 r25272  
    17651765    wp_nonce_field("$option_group-options");
    17661766}
     1767
     1768/**
     1769 * Clears the Plugins cache used by get_plugins() and by default, the Plugin Update cache.
     1770 *
     1771 * @since 3.7.0
     1772 *
     1773 * @param bool $clear_update_cache Whether to clear the Plugin updates cache
     1774 */
     1775function wp_clean_plugins_cache( $clear_update_cache = true ) {
     1776    if ( $clear_update_cache )
     1777        delete_site_transient( 'update_plugins' );
     1778    wp_cache_delete( 'plugins', 'plugins' );
     1779}
Note: See TracChangeset for help on using the changeset viewer.