fix netdata
This commit is contained in:
@@ -19,6 +19,7 @@ map $http_cookie $cookie_no_cache {
|
||||
"~*woocommerce_cart_hash" 1;
|
||||
"~*wptouch_switch_toogle" 1;
|
||||
"~*comment_author_email_" 1;
|
||||
"~*edd" 1;
|
||||
}
|
||||
|
||||
# do not cache the following uri
|
||||
@@ -33,6 +34,16 @@ map $request_uri $uri_no_cache {
|
||||
"~*/wp-comments-popup.php" 1;
|
||||
"~*/wp-links-opml.php" 1;
|
||||
"~*/xmlrpc.php" 1;
|
||||
"~*/checkout" 1;
|
||||
"~*/edd_action" 1;
|
||||
"~*/add_to_cart/" 1;
|
||||
"~*/cart/" 1;
|
||||
"~*/my-account/" 1;
|
||||
"~*/checkout/" 1;
|
||||
"~*/addons/" 1;
|
||||
"~*/wc-api/*" 1;
|
||||
"~*/logout/" 1;
|
||||
"~*/lost-password/" 1;
|
||||
}
|
||||
|
||||
# do not cache requests with query strings
|
||||
@@ -49,6 +60,6 @@ map $http_request_no_cache$cookie_no_cache$uri_no_cache$query_no_cache $skip_cac
|
||||
|
||||
# map $skip_cache with $cache_uri for --wpsc stack
|
||||
map $skip_cache $cache_uri {
|
||||
default 'null cache';
|
||||
0 $request_uri;
|
||||
default 'null cache';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user