You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: global/server/fastcgi-cache.conf
+3-3
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,12 @@ if ($query_string != "") {
23
23
set $skip_cache 1;
24
24
}
25
25
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/") {
28
28
set $skip_cache 1;
29
29
}
30
30
31
31
# 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") {
0 commit comments