Hey @everyone,
I’ve spotted several topics that relate to users not having disabled caching for logged-in users. Many caching plugins don’t have this exact option, so here’s a snippet I thought I’d share with the community that you can add with the Code Snippets plugin for easy maintenance.
add_action( 'init', function() {
if ( is_user_logged_in() ) {
if ( ! defined( 'DONOTCACHEPAGE' ) ) {
define( 'DONOTCACHEPAGE', true );
}
}
});
I hope the community finds this useful!
Cheers,
Chris