Make WordPress Core


Ignore:
Timestamp:
05/22/2008 05:28:54 PM (18 years ago)
Author:
ryan
Message:

wp_cache_add_global_groups() and wp_cache_add_non_persistent_groups(). fixes #6740

File:
1 edited

Legend:

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

    r6711 r7986  
    139139
    140140/**
     141 * wp_cache_add_global_groups() - Adds a group or set of groups to the list of global groups
     142 *
     143 * @since 2.6
     144 *
     145 * @param string|array $groups A group or an array of groups to add
     146 */
     147function wp_cache_add_global_groups( $groups ) {
     148        // Default cache doesn't persist so nothing to do here.
     149        return;
     150}
     151
     152/**
     153 * wp_cache_add_non_persistent_groups() - Adds a group or set of groups to the list of non-persistent groups
     154 *
     155 * @since 2.6
     156 *
     157 * @param string|array $groups A group or an array of groups to add
     158 */
     159function wp_cache_add_non_persistent_groups( $groups ) {
     160        // Default cache doesn't persist so nothing to do here.
     161        return;
     162}
     163
     164/**
    141165 * WordPress Object Cache
    142166 *
     
    173197         */
    174198        var $non_existant_objects = array ();
    175 
    176         /**
    177          * Object caches that are global
    178          *
    179          * @var array
    180          * @access private
    181          * @since 2.0
    182          */
    183         var $global_groups = array ('users', 'userlogins', 'usermeta');
    184199
    185200        /**
Note: See TracChangeset for help on using the changeset viewer.