Make WordPress Core

Changeset 61562


Ignore:
Timestamp:
01/30/2026 12:53:01 AM (3 months ago)
Author:
peterwilsoncc
Message:

Site Health: Reduce thresholds for object cache threshold tests.

Reduces the object counts required for Site Health to recommend a persistent object cache in the Tests_Admin_wpSiteHealth::test_object_cache_thresholds() data provider.

This is to ensure that the number of objects (terms, posts, etc) are certainly below the defaults created by the test suite during set up. The new threasholds are:

  • terms count: 0
  • alloptions count: 1
  • alloptions bytes: 10

This follows the reduction to the options count threshold to 1 in r61438.

Props peterwilsoncc, swissspidy, wildworks.
Fixes #60831.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/admin/wpSiteHealth.php

    r61438 r61562  
    490490            array( 'comments_count', 0 ),
    491491            array( 'posts_count', 0 ),
    492             array( 'terms_count', 1 ),
     492            array( 'terms_count', 0 ),
    493493            array( 'options_count', 1 ),
    494494            array( 'users_count', 0 ),
    495             array( 'alloptions_count', 100 ),
    496             array( 'alloptions_bytes', 1000 ),
     495            array( 'alloptions_count', 1 ),
     496            array( 'alloptions_bytes', 10 ),
    497497        );
    498498    }
Note: See TracChangeset for help on using the changeset viewer.