Skip to content

Commit

Permalink
Merge pull request #106 from ccharlton/patch-1
Browse files Browse the repository at this point in the history
Minor formatting updates to CHECKS.md
  • Loading branch information
jazzsequence authored Sep 23, 2022
2 parents c9a324c + 8c1bd81 commit 3673d16
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CHECKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ This check does the following:
* Checks for WP_DEBUG=True, returns 'ok' if in dev, 'warning; in live
* Checks whether the debug-bar plugin is active, 'ok' in dev, 'warning' in live
* Counts active plugins. Alerts if more than 100 are active
* Checks database settings for ```home``` and ```siteurl``` and whether they match. If they do not it recommends fixing. You can do this with WP_CLI/Terminus using 'terminus wp search-replace 'domain1' 'domain2' --site=sitename --env=dev'
* Checks database settings for ```home``` and ```siteurl``` and whether they match. If they do not it recommends fixing. You can do this with ```WP_CLI/Terminus using 'terminus wp search-replace 'domain1' 'domain2' --site=sitename --env=dev'```
* Checks whether WP Super Cache and/or W3 Total Cache are found and alerts 'warning' if so.
*

### Database
**Database:** [\Pantheon\Checks\Database](php/pantheon/checks/database.php)
Expand All @@ -69,7 +68,7 @@ This check runs the following db checks

### Cron
**Cron:** [\Pantheon\Checks\Cron](php/commands/checks/cron.php)
This check simple examines whether ```DISABLE_WP_CRON``` evaluates ```true``` to see if cron has been disabled. ( We should probably also curl the wp-cron.php?doing_wp_cron and ensure we get a 200 ). Some hosts disable the default WP_Cron functionality, substituting a system cron, because the HTTP base WP_Cron can sometimes have race conditions develop causing what might be referred to as "runaway cron", in which HTTP multiple requests trigger the cron a small amount of time causing a spike in PHP/MySQL resource consumption. This check also dumps the scheduled tasks into a table using ```get_option('cron')```.
This check simple examines whether ```DISABLE_WP_CRON``` evaluates ```true``` to see if cron has been disabled. ( We should probably also curl the ```wp-cron.php?doing_wp_cron``` and ensure we get a 200 ). Some hosts disable the default WP_Cron functionality, substituting a system cron, because the HTTP base WP_Cron can sometimes have race conditions develop causing what might be referred to as "runaway cron", in which HTTP multiple requests trigger the cron a small amount of time causing a spike in PHP/MySQL resource consumption. This check also dumps the scheduled tasks into a table using ```get_option('cron')```.

### object-cache
**objectcache** [\Pantheon\Checks\Cron](php/commands/checks/objectcache.php)
Expand Down

0 comments on commit 3673d16

Please sign in to comment.