Skip to content

Use wp_cache_flush_runtime if supported.#5778

Merged
schlessera merged 1 commit intowp-cli:mainfrom
spacedmonkey:wp_cache_flush_runtime
May 5, 2023
Merged

Use wp_cache_flush_runtime if supported.#5778
schlessera merged 1 commit intowp-cli:mainfrom
spacedmonkey:wp_cache_flush_runtime

Conversation

@spacedmonkey
Copy link
Contributor

Call the function wp_cache_flush_runtime in wp_clear_object_cache . This function has been in core since 6.0.0 ( WordPress/wordpress-develop@c98f4c0) and is designed to perform the what currently wp_clear_object_cache does.

Checks to see if wp_cache_flush_runtime and wp_cache_supports exists before b/c

Fixes #5769

@schlessera schlessera added this to the 2.8.0 milestone May 5, 2023
@schlessera schlessera merged commit 0113c0f into wp-cli:main May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Call wp_cache_flush_runtime in wp_clear_object_cache

3 participants