Skip to content

Commit 13eac41

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@61562 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 05db13d commit 13eac41

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/phpunit/tests/admin/wpSiteHealth.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,11 +489,11 @@ public function data_object_cache_thresholds() {
489489
return array(
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
}
499499

0 commit comments

Comments
 (0)