Changeset 53763 for trunk/src/wp-includes/cache.php
- Timestamp:
- 07/22/2022 08:50:31 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cache.php
r53206 r53763 21 21 function wp_cache_init() { 22 22 $GLOBALS['wp_object_cache'] = new WP_Object_Cache(); 23 } 24 25 /** 26 * Whether the object cache implementation supports flushing individual cache groups. 27 * 28 * @since 6.1.0 29 * 30 * @see WP_Object_Cache::flush_group() 31 * 32 * @return bool True if group flushing is supported, false otherwise. 33 */ 34 function wp_cache_supports_group_flush() { 35 return true; 23 36 } 24 37 … … 283 296 284 297 /** 298 * Removes all cache items in a group, if the object cache implementation supports it. 299 * Before calling this method, always check for group flushing support using the 300 * `wp_cache_supports_group_flush()` method. 301 * 302 * @since 6.1.0 303 * 304 * @see WP_Object_Cache::flush_group() 305 * @global WP_Object_Cache $wp_object_cache Object cache global instance. 306 * 307 * @param string $group Name of group to remove from cache. 308 * @return bool True if group was flushed, false otherwise. 309 */ 310 function wp_cache_flush_group( $group ) { 311 global $wp_object_cache; 312 313 return $wp_object_cache->flush_group( $group ); 314 } 315 316 /** 285 317 * Closes the cache. 286 318 *
Note: See TracChangeset
for help on using the changeset viewer.