Skip to content

Commit d323217

Browse files
committed
Temp: Try removing object/page cache tests to see if E2E fixed
1 parent 4a4c490 commit d323217

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

src/Admin/SiteHealth.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,6 @@ public function register_async_test_endpoints() {
180180
* @return array $tests The filtered tests, with tests for AMP.
181181
*/
182182
public function add_tests( $tests ) {
183-
$tests['direct']['amp_persistent_object_cache'] = [
184-
'label' => esc_html__( 'Persistent object cache', 'amp' ),
185-
'test' => [ $this, 'persistent_object_cache' ],
186-
];
187-
188183
if ( ! amp_is_canonical() && QueryVar::AMP !== amp_get_slug() ) {
189184
$tests['direct']['amp_slug_definition_timing'] = [
190185
'label' => esc_html__( 'AMP slug (query var) definition timing', 'amp' ),
@@ -212,15 +207,6 @@ public function add_tests( $tests ) {
212207
'test' => [ $this, 'xdebug_extension' ],
213208
];
214209

215-
if ( $this->supports_async_rest_tests( $tests ) ) {
216-
$tests['async'][ self::TEST_PAGE_CACHING ] = [
217-
'label' => esc_html__( 'Page caching', 'amp' ),
218-
'test' => rest_url( self::REST_API_NAMESPACE . self::REST_API_PAGE_CACHE_ENDPOINT ),
219-
'has_rest' => true,
220-
'async_direct_test' => [ $this, 'page_cache' ],
221-
];
222-
}
223-
224210
return $tests;
225211
}
226212

tests/php/src/Admin/SiteHealthTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,6 @@ public function test_register_async_test_endpoints() {
154154
public function test_add_tests() {
155155
$tests = $this->instance->add_tests( [] );
156156
$this->assertArrayHasKey( 'direct', $tests );
157-
$this->assertArrayHasKey( 'amp_persistent_object_cache', $tests['direct'] );
158-
159-
if ( version_compare( get_bloginfo( 'version' ), '5.6', '>=' ) ) {
160-
$this->assertArrayHasKey( 'amp_page_cache', $tests['async'] );
161-
} elseif ( array_key_exists( 'async', $tests ) ) {
162-
$this->assertArrayNotHasKey( 'amp_page_cache', $tests['async'] );
163-
}
164157

165158
$this->assertArrayHasKey( 'amp_curl_multi_functions', $tests['direct'] );
166159
$this->assertArrayNotHasKey( 'amp_icu_version', $tests['direct'] );

0 commit comments

Comments
 (0)