From c290d7be7888bb2c72d38c7174915e36f315610a Mon Sep 17 00:00:00 2001 From: Jonny Harris Date: Wed, 10 May 2023 23:27:28 +0100 Subject: [PATCH] Only flush local cache --- object-cache.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/object-cache.php b/object-cache.php index 5211a69..c607bd1 100644 --- a/object-cache.php +++ b/object-cache.php @@ -165,7 +165,9 @@ function wp_cache_get_multiple( $keys, $group = '', $force = false ) { * @return bool True on success, false on failure. */ function wp_cache_flush_runtime() { - return wp_cache_flush(); + global $wp_object_cache; + + return $wp_object_cache->flush( false ); } /**