WP_REST_Site_Health_Controller::test_page_cache()publicWP 6.1.0

Checks that full page cache is active.

Method of the class: WP_REST_Site_Health_Controller{}

No Hooks.

Return

Array. The test result.

Usage

$WP_REST_Site_Health_Controller = new WP_REST_Site_Health_Controller();
$WP_REST_Site_Health_Controller->test_page_cache();

Changelog

Since 6.1.0 Introduced.

WP_REST_Site_Health_Controller::test_page_cache() code WP 6.1.1

public function test_page_cache() {
	$this->load_admin_textdomain();
	return $this->site_health->get_test_page_cache();
}