Skip to content

Instantly share code, notes, and snippets.

@kraftbj
Created November 5, 2020 21:03
Show Gist options
  • Save kraftbj/02a47ef12104341014ccd030b06c90df to your computer and use it in GitHub Desktop.
Save kraftbj/02a47ef12104341014ccd030b06c90df to your computer and use it in GitHub Desktop.
Remove cache test from AMP
<?php
add_filter( 'site_status_tests', function ( $tests ) {
unset( $tests['direct']['amp_persistent_object_cache'] );
return $tests;
}, 99 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment