Skip to content

Commit

Permalink
Update text
Browse files Browse the repository at this point in the history
  • Loading branch information
bradp committed Dec 10, 2024
1 parent 7e384b3 commit a39d902
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions includes/HealthChecks.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public function addHealthChecks() {
array(
'id' => 'post-revisions',
'title' => __( 'Post Revisions', 'newfold-performance-module' ),
'pass' => __( 'Number of post revisions is limited to 5 or less.', 'newfold-performance-module' ),
'fail' => __( 'Number of post revisions is set to a high number.', 'newfold-performance-module' ),
'pass' => __( 'Number of post revisions is limited to 5 or less', 'newfold-performance-module' ),
'fail' => __( 'Number of post revisions is set to a high number', 'newfold-performance-module' ),
'text' => __( 'Setting the number of post revisions to a lower number can reduce database bloat.', 'newfold-performance-module' ),
'test' => function () {
return ( defined( 'WP_POST_REVISIONS' ) && WP_POST_REVISIONS <= 5 );
Expand All @@ -61,7 +61,7 @@ public function addHealthChecks() {
array(
'id' => 'empty-trash-days',
'title' => __( 'Empty Trash Days', 'newfold-performance-module' ),
'pass' => __( 'Trash is emptied every 30 days or less.', 'newfold-performance-module' ),
'pass' => __( 'Trash is emptied every 30 days or less', 'newfold-performance-module' ),
'fail' => __( 'Trash is emptied less frequently than every 30 days.', 'newfold-performance-module' ),
'text' => __( 'Emptying the trash more frequently can reduce database bloat.', 'newfold-performance-module' ),
'test' => function () {
Expand All @@ -78,7 +78,7 @@ public function addHealthChecks() {
'fail' => __( 'Cron lock timeout is set to a high number.', 'newfold-performance-module' ),
'text' => __( 'Cron lock timeout affects how long a cron job can run for, setting it to a lower number can improve performance.', 'newfold-performance-module' ),
'test' => function () {
return ( defined( 'WP_CRON_LOCK_TIMEOUT' ) && WP_CRON_LOCK_TIMEOUT <= 60 );
return ( defined( 'WP_CRON_LOCK_TIMEOUT' ) && WP_CRON_LOCK_TIMEOUT <= 300 );
},
)
);
Expand Down

0 comments on commit a39d902

Please sign in to comment.