Skip to content

Commit c511e52

Browse files
committed
Add Woo and EDD defaults to page cache exclusions
1 parent 95c7a53 commit c511e52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

global/server/fastcgi-cache.conf

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ if ($query_string != "") {
2323
set $skip_cache 1;
2424
}
2525

26-
# Don't cache uris containing the following segments
27-
if ($request_uri ~* "/wp-admin/|/wp-json/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml") {
26+
# Don't cache URIs containing the following segments
27+
if ($request_uri ~* "/wp-admin/|/wp-json/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml|/cart/|/checkout/|/my-account/") {
2828
set $skip_cache 1;
2929
}
3030

3131
# Don't use the cache for logged in users or recent commenters
32-
if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in") {
32+
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") {
3333
set $skip_cache 1;
3434
}

0 commit comments

Comments
 (0)