Changeset 7986
- Timestamp:
- 05/22/2008 05:28:54 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cache.php
r6711 r7986 139 139 140 140 /** 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 */ 147 function 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 */ 159 function wp_cache_add_non_persistent_groups( $groups ) { 160 // Default cache doesn't persist so nothing to do here. 161 return; 162 } 163 164 /** 141 165 * WordPress Object Cache 142 166 * … … 173 197 */ 174 198 var $non_existant_objects = array (); 175 176 /**177 * Object caches that are global178 *179 * @var array180 * @access private181 * @since 2.0182 */183 var $global_groups = array ('users', 'userlogins', 'usermeta');184 199 185 200 /** -
trunk/wp-settings.php
r7961 r7986 220 220 221 221 wp_cache_init(); 222 if ( function_exists('wp_cache_add_global_groups') ) { 223 wp_cache_add_global_groups(array ('users', 'userlogins', 'usermeta')); 224 wp_cache_add_non_persistent_groups(array( 'comment', 'counts' )); 225 } 222 226 223 227 require (ABSPATH . WPINC . '/plugin.php');
Note: See TracChangeset
for help on using the changeset viewer.