Make WordPress Core


Ignore:
Timestamp:
02/18/2022 12:04:52 PM (3 years ago)
Author:
spacedmonkey
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/pluggable.php

    r52706 r52772  
    327327                    ),
    328328                    'wp_cache_flush'                     => array(),
     329                    'wp_cache_flush_runtime'             => array(),
    329330                    'wp_cache_close'                     => array(),
    330331                    'wp_cache_add_global_groups'         => array( 'groups' ),
Note: See TracChangeset for help on using the changeset viewer.