Created
October 25, 2018 20:06
-
-
Save bhubbard/b4e873aa2f5936c8a8ff9d8ca5260a49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use only to test/check object cache. | |
add_action( 'wp_footer', function () { | |
$GLOBALS['wp_object_cache']->stats(); | |
echo '<style>.site-menu { display:none!important;}</style>'; | |
var_dump( wp_json_encode( $GLOBALS['wp_object_cache']->stats() ) ); | |
} ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment