Add WP Super Cache support
-
Hi, this is my way to allow WP Super Cache to split cache between users using a specific cookie and other users:
if ( is_plugin_active( ‘wp-super-cache/wp-cache.php’ ) ) {
/*
* Tell WP Super Cache to cache requests with the cookie “Cookies and Content Security Policy” separately from other visitors.
*/function add_wpsc_cookie_banner() {
do_action( ‘wpsc_add_cookie’, ‘cookies_and_content_security_policy’ );
}
add_action( ‘init’, ‘add_wpsc_cookie_banner’ );}
Could you please consider adding this code or similar to this plugin, so WP Super Cache users don’t have to install custom code with this great plugin? Whenever I activate this plugin to a user, I need to add this code too.
- The topic ‘Add WP Super Cache support’ is closed to new replies.