Skip to content

Commit e98134e

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. Merges [61562] to the 6.9 branch; merges the one line change from [61438] to the 6.9 branch. Props peterwilsoncc, swissspidy, wildworks. Fixes #60831. git-svn-id: https://develop.svn.wordpress.org/branches/6.9@61563 602fd350-edb4-49c9-b593-d223f7449a82
1 parent fb42f0d commit e98134e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/phpunit/tests/admin/wpSiteHealth.php

Lines changed: 4 additions & 4 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 ),
493-
array( 'options_count', 100 ),
492+
array( 'terms_count', 0 ),
493+
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)