wp_cache_flush_runtime(): bool
- Since
- 6.0.0
- Source
wp-includes/cache-compat.php:140
Removes all cache items from the in-memory runtime cache.
Description
Compat function to mimic wp_cache_flush_runtime().
Return
bool- True on success, false on failure.
Uses · 4
- wp_cache_supports()Determines whether the object cache implementation supports a particular feature.
- _doing_it_wrong()Marks something as being incorrectly called.
- __()Retrieves the translation of $text.
- wp_cache_flush()Removes all cache items.
Source
function wp_cache_flush_runtime() { if ( ! wp_cache_supports( 'flush_runtime' ) ) { _doing_it_wrong( __FUNCTION__, __( 'Your object cache implementation does not support flushing the in-memory runtime cache.' ), '6.1.0' ); return false; } return wp_cache_flush(); }History
Introduced in 6.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, from
src/wp-includes/cache-compat.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.