Skip to content

Commit

Permalink
Add Woo and EDD defaults to page cache exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
A5hleyRich committed Apr 25, 2020
1 parent 95c7a53 commit c511e52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions global/server/fastcgi-cache.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit c511e52

Please sign in to comment.