From c511e5272d88c379d62643ea7fad257c2c25e389 Mon Sep 17 00:00:00 2001 From: Ashley Rich Date: Sat, 25 Apr 2020 10:24:41 +0100 Subject: [PATCH] Add Woo and EDD defaults to page cache exclusions --- global/server/fastcgi-cache.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/global/server/fastcgi-cache.conf b/global/server/fastcgi-cache.conf index 14d0d7f..6c74e5c 100644 --- a/global/server/fastcgi-cache.conf +++ b/global/server/fastcgi-cache.conf @@ -23,12 +23,12 @@ if ($query_string != "") { set $skip_cache 1; } -# Don't cache uris containing the following segments -if ($request_uri ~* "/wp-admin/|/wp-json/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml") { +# Don't cache URIs containing the following segments +if ($request_uri ~* "/wp-admin/|/wp-json/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml|/cart/|/checkout/|/my-account/") { set $skip_cache 1; } # Don't use the cache for logged in users or recent commenters -if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in") { +if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in|edd_items_in_cart|woocommerce_items_in_cart") { set $skip_cache 1; }