feat: rejected-cookie cache exclusions for WooCommerce cart
Add wp_recache_rejected_cookies option (defaults: woocommerce_items_in_cart, wp_woocommerce_session_*, wp-postpass, comment_author_*, wordpress_*) that bypasses page cache when any listed cookie is present. Both the WP-level check (wp_recache_should_exclude) and the standalone drop-in apply the same exact/prefix matching logic. Editing the option regenerates the drop-in and purges all cache.
This commit is contained in:
@@ -12,6 +12,7 @@ $options = [
|
||||
'wp_recache_cache_enabled',
|
||||
'wp_recache_separate_mobile_cache',
|
||||
'wp_recache_exclude_urls',
|
||||
'wp_recache_rejected_cookies',
|
||||
'wp_recache_minify_css',
|
||||
'wp_recache_minify_js',
|
||||
'wp_recache_lazyload_images',
|
||||
|
||||
Reference in New Issue
Block a user