HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/local/wp/vendor/wp-cli/doctor-command/features/check-cache-flush.feature
Feature: Check if wp_cache_flush() function is used inside wp-content directory

  Scenario: Detect wp_cache_flush()
    Given a WP install
    And a wp-content/mu-plugins/plugin.php file:
      """
      <?php
      wp_cache_flush();
      """

    When I run `wp doctor check cache-flush`
    Then STDOUT should contain:
      """
      cache-flush
      """
    And STDOUT should contain:
      """
      warning
      """
    And STDOUT should contain:
      """
      Use of wp_cache_flush() detected
      """
    And STDOUT should contain:
      """
      mu-plugins/plugin.php
      """