FIX: wc cache fix
This commit is contained in:
parent
54402095a3
commit
4cef2b8455
@ -32,3 +32,13 @@ if ($request_uri ~* "/wp-admin/|/wp-json/|/xmlrpc.php|wp-.*.php|/feed/|index.php
|
|||||||
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") {
|
||||||
set $skip_cache 1;
|
set $skip_cache 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Skip cache on WooCommerce pages (no contempla urls con localización)
|
||||||
|
if ($request_uri ~* "/store.*|/carrito.*|/mi-cuenta.*|/cart.*|/my-account.*|/checkout.*|/addons.*") {
|
||||||
|
set $skip_cache 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Skip cache for WooCommerce query string
|
||||||
|
if ( $arg_add-to-cart != "" ) {
|
||||||
|
set $skip_cache 1;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user