Make WordPress Core

Changeset 55742


Ignore:
Timestamp:
05/10/2023 02:00:01 PM (12 months ago)
Author:
SergeyBiryukov
Message:

Tests: Move wp_cache_flush_runtime() next to wp_cache_flush().

This matches the function's placement in wp-includes/cache.php and brings more consistency.

Follow-up to [52772], [55741].

See #57841.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/object-cache.php

    r55741 r55742  
    314314
    315315/**
     316 * Removes all cache items from the in-memory runtime cache.
     317 *
     318 * @return bool True on success, false on failure.
     319 */
     320function wp_cache_flush_runtime() {
     321    global $wp_object_cache;
     322    return $wp_object_cache->flush_runtime();
     323}
     324
     325/**
    316326 * Determines whether the object cache implementation supports a particular feature.
    317327 *
     
    331341            return false;
    332342    }
    333 }
    334 
    335 /**
    336  * Removes all cache items from the in-memory runtime cache.
    337  *
    338  * @return bool True on success, false on failure.
    339  */
    340 function wp_cache_flush_runtime() {
    341     global $wp_object_cache;
    342     return $wp_object_cache->flush_runtime();
    343343}
    344344
Note: See TracChangeset for help on using the changeset viewer.