Make WordPress Core


Ignore:
Timestamp:
07/23/2022 02:56:51 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Cache API: Make the placement of wp_cache_flush_group() more consistent.

Includes:

  • Placing WP_Object_Cache::flush_group() next to ::flush().
  • Placing wp_cache_supports_group_flush() next to wp_cache_flush_group().
  • Placing the wp_cache_flush_group() unit test next to the ::flush() method test.
  • Removing test name from assertion messages, as it is already mentioned directly above in case of failure.
  • Adjusting function descriptions per the documentation standards.

Follow-up to [52706], [53763].

See #55647, #4476.

File:
1 edited

Legend:

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

    r53763 r53767  
    269269                    // wp-includes/cache.php:
    270270                    'wp_cache_init'                      => array(),
    271                     'wp_cache_supports_group_flush'      => array(),
    272271                    'wp_cache_add'                       => array(
    273272                        'key',
     
    330329                    'wp_cache_flush_runtime'             => array(),
    331330                    'wp_cache_flush_group'               => array( 'group' ),
     331                    'wp_cache_supports_group_flush'      => array(),
    332332                    'wp_cache_close'                     => array(),
    333333                    'wp_cache_add_global_groups'         => array( 'groups' ),
Note: See TracChangeset for help on using the changeset viewer.