- Timestamp:
- 02/18/2022 12:04:52 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cache-compat.php
r52708 r52772 124 124 } 125 125 endif; 126 127 if ( ! function_exists( 'wp_cache_flush_runtime' ) ) : 128 /** 129 * Removes all cache items from the in-memory runtime cache. 130 * 131 * Compat function to mimic wp_cache_flush_runtime(). 132 * 133 * @ignore 134 * @since 6.0.0 135 * 136 * @see wp_cache_flush_runtime() 137 * 138 * @return bool True on success, false on failure. 139 */ 140 function wp_cache_flush_runtime() { 141 return wp_using_ext_object_cache() ? false : wp_cache_flush(); 142 } 143 endif; -
trunk/src/wp-includes/cache.php
r52708 r52772 270 270 271 271 /** 272 * Removes all cache items from the in-memory runtime cache. 273 * 274 * @since 6.0.0 275 * 276 * @see WP_Object_Cache::flush() 277 * 278 * @return bool True on success, false on failure. 279 */ 280 function wp_cache_flush_runtime() { 281 return wp_cache_flush(); 282 } 283 284 /** 272 285 * Closes the cache. 273 286 * -
trunk/tests/phpunit/tests/pluggable.php
r52706 r52772 327 327 ), 328 328 'wp_cache_flush' => array(), 329 'wp_cache_flush_runtime' => array(), 329 330 'wp_cache_close' => array(), 330 331 'wp_cache_add_global_groups' => array( 'groups' ),
Note: See TracChangeset
for help on using the changeset viewer.