WordPress.org

Make WordPress Core

Changeset 22111


Ignore:
Timestamp:
10/04/2012 03:32:55 PM (7 years ago)
Author:
ryan
Message:

Update phpdoc and deprecation for wp_cache_reset(). see #21434

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cache.php

    r22086 r22111  
    221221
    222222/**
    223  * Reset internal cache keys and structures. If the cache backend uses global blog or site IDs as part of its cache keys,
    224  * this function instructs the backend to reset those keys and perform any cleanup since blog or site IDs have changed since cache init.
     223 * Reset internal cache keys and structures. If the cache backend uses global
     224 * blog or site IDs as part of its cache keys, this function instructs the
     225 * backend to reset those keys and perform any cleanup since blog or site IDs
     226 * have changed since cache init.
     227 *
     228 * This function is deprecated. Use wp_cache_switch_to_blog() instead of this
     229 * function when preparing the cache for a blog switch. For clearing the cache
     230 * during unit tests, consider using wp_cache_init(). wp_cache_init() is not
     231 * recommended outside of unit tests as the performance penality for using it is
     232 * high.
    225233 *
    226234 * @since 2.6.0
     
    228236 */
    229237function wp_cache_reset() {
    230     _deprecated_function( __FUNCTION__, '3.5', 'wp_cache_switch_to_blog()' );
     238    _deprecated_function( __FUNCTION__, '3.5' );
    231239
    232240    global $wp_object_cache;
Note: See TracChangeset for help on using the changeset viewer.