mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-15 08:44:33 +00:00
Cache API: Add wp_cache_flush_runtime function
Add a new function called `wp_cache_flush_runtime` to existing caching functions found in WordPress. This function allows users to flush the runtime (in-memory) cache, without flushing the entire persistent cache. Props: Spacedmonkey, tillkruess, flixos90, adamsilverstein, SergeyBiryukov, barryhughes. Fixes: #55080. git-svn-id: https://develop.svn.wordpress.org/trunk@52772 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -326,6 +326,7 @@ class Tests_Pluggable extends WP_UnitTestCase {
|
||||
'group' => '',
|
||||
),
|
||||
'wp_cache_flush' => array(),
|
||||
'wp_cache_flush_runtime' => array(),
|
||||
'wp_cache_close' => array(),
|
||||
'wp_cache_add_global_groups' => array( 'groups' ),
|
||||
'wp_cache_add_non_persistent_groups' => array( 'groups' ),
|
||||
|
||||
Reference in New Issue
Block a user