WordPress/wp-includes/rest-api/endpoints
Felix Arntz fab7a3bb92 Site Health: Introduce page cache check.
This changeset adds a new `page_cache` check which determines whether the site uses a full page cache, and in addition assesses the server response time. If no page cache is present and the server response time is slow, the check will suggest use of a page cache.

A few filters are included for customization of the check:
* `site_status_good_response_time_threshold` filters the number of milliseconds below which the server response time is considered good. The default value is based on the `server-response-time` Lighthouse audit and can be altered using this filter.
* `site_status_page_cache_supported_cache_headers` filters the map of supported cache headers and their callback to determine whether it was a cache hit. The default list includes commonly used cache headers, and it is filterable to support e.g. additional cache headers used by specific vendors.

Note that due to the nature of this check it is only run in production environments.

Props furi3r, westonruter, spacedmonkey, swissspidy, Clorith.
Fixes #56041.

Built from https://develop.svn.wordpress.org/trunk@54043


git-svn-id: http://core.svn.wordpress.org/trunk@53602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-31 22:46:11 +00:00
..
class-wp-rest-application-passwords-controller.php Application Passwords: Allow a Super Admin to set an application password on a site they're not a member of. 2022-08-11 18:24:09 +00:00
class-wp-rest-attachments-controller.php Media: Add information about additional MIME type sources to attachments REST endpoints. 2022-07-27 15:15:15 +00:00
class-wp-rest-autosaves-controller.php
class-wp-rest-block-directory-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-block-pattern-categories-controller.php Docs: Various docblock corrections and improvements for changes introduced in 6.0. 2022-04-28 09:59:13 +00:00
class-wp-rest-block-patterns-controller.php Docs: Various docblock corrections and improvements for changes introduced in 6.0. 2022-04-28 09:59:13 +00:00
class-wp-rest-block-renderer-controller.php
class-wp-rest-block-types-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-blocks-controller.php Docs: Miscellaneous docblock corrections in REST API and Sitemaps API. 2022-01-15 21:22:02 +00:00
class-wp-rest-comments-controller.php REST API: Prime post caches in comments endpoint. 2022-07-25 02:53:13 +00:00
class-wp-rest-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-edit-site-export-controller.php Theme: Use a better method to determine the theme name during export 2022-05-17 12:10:14 +00:00
class-wp-rest-global-styles-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-menu-items-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-menu-locations-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-menus-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-pattern-directory-controller.php Block Patterns: Update the value used for keywords. 2022-07-05 16:03:13 +00:00
class-wp-rest-plugins-controller.php Docs: Correct and improve the documented types for various functions and hooks. 2022-08-11 14:03:09 +00:00
class-wp-rest-post-statuses-controller.php
class-wp-rest-post-types-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-posts-controller.php Revisions: Use `latest_id` as the array key for the latest revision ID. 2022-08-05 13:02:13 +00:00
class-wp-rest-revisions-controller.php
class-wp-rest-search-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-settings-controller.php
class-wp-rest-sidebars-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-site-health-controller.php Site Health: Introduce page cache check. 2022-08-31 22:46:11 +00:00
class-wp-rest-taxonomies-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-templates-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-terms-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-themes-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-url-details-controller.php General: Replace all `esc_url_raw()` calls in core with `sanitize_url()`. 2022-06-01 18:14:10 +00:00
class-wp-rest-users-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-widget-types-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00
class-wp-rest-widgets-controller.php REST API: Avoid unnecessarily preparing item links. 2022-07-22 14:00:12 +00:00