Woocommerce + nginx cache
-
Hello guys, could someone share with working nginx cache configuration for woocommerce?
I must to use 2.6 woocommerce version and having issues with mixing carts between users…
set $no_cache ""; if ($request_uri ~* "/store.*|/cart.*|/my-account.*|/checkout.*|/addons.*") { set $no_cache 1; } if ( $arg_add-to-cart != "" ) { set $no_cache 1; } if ( $cookie_woocommerce_items_in_cart != "0" ) { set $no_cache 1; } set $rt_session ""; if ($http_cookie ~* "wc_session_cookie_[^=]*=([^%]+)%7C") { set $rt_session wc_session_cookie_$1; } if ($no_cache = 0 ) { more_clear_headers "Set-Cookie*"; set $rt_session ""; } fastcgi_cache_key "$scheme$request_method$host$request_uri$rt_session";
`
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Woocommerce + nginx cache’ is closed to new replies.