wp_cache_flush_runtime() – Removes all cache items from the in-memory runtime cache.

You appear to be a bot. Output may be restricted

Description

Removes all cache items from the in-memory runtime cache.

Compat function to mimic wp_cache_flush_runtime().

Usage

$bool = wp_cache_flush_runtime();

Parameters

Returns

bool True on success, false on failure.

Source

File name: wordpress/wp-includes/cache-compat.php


Lines:

1 to 14 of 14
  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();
  }
 

 View on GitHub View on Trac