diff --git a/advanced-cache.php b/advanced-cache.php index ada8883..d857fa9 100644 --- a/advanced-cache.php +++ b/advanced-cache.php @@ -407,7 +407,7 @@ function set_query( $query_string ) { // Never batcache when cookies indicate a cache-exempt visitor. if ( is_array( $_COOKIE) && ! empty( $_COOKIE ) ) { foreach ( array_keys( $_COOKIE ) as $batcache->cookie ) { - if ( ! in_array( $batcache->cookie, $batcache->noskip_cookies ) && ( substr( $batcache->cookie, 0, 2 ) == 'wp' || substr( $batcache->cookie, 0, 9 ) == 'wordpress' || substr( $batcache->cookie, 0, 14 ) == 'comment_author' ) ) { + if ( ! in_array( $batcache->cookie, $batcache->noskip_cookies ) && ( substr( $batcache->cookie, 0, 12 ) == 'woocommerce_' || substr( $batcache->cookie, 0, 10 ) == 'wordpress_' || substr( $batcache->cookie, 0, 15 ) == 'comment_author_' ) ) { batcache_stats( 'batcache', 'cookie_skip' ); return; }