File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ worker_processes auto;
1010events {
1111 use epoll; # Efficient event-driven model for Linux
1212 multi_accept on; # Accept multiple new connections at once
13+ worker_connections 1024 ; # Max simultaneous connections per worker
1314}
1415
1516####### HTTP MODULE ########
2021
2122 ####### PERFORMANCE & BUFFER SETTINGS ########
2223 fastcgi_buffer_size 512k ; # FastCGI buffer size
23- fastcgi_busy_buffers_size 512k ; # FastCGI busy buffer size
24+ fastcgi_busy_buffers_size 1024k ; # FastCGI busy buffer size
2425 fastcgi_buffers 16 512k ; # Number of FastCGI buffers
2526
2627 server_names_hash_bucket_size 128 ;
7475 application/x-javascript text/xml
7576 application/xml application/xml+rss
7677 text/javascript text/js
78+ application/json
7779 application/javascript;
7880 gzip_static on; # Use pre-compressed .gz files if available
7981
@@ -144,10 +146,14 @@ http {
144146 }
145147
146148 # 3. Cookie-based exclusions
147- # Skips cache for Wordpress.
149+ # Skips cache for Wordpress + WoodMart .
148150 map $http_cookie $skip_cache_cookie {
149151 default 0;
150152 ~ *( comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in) 1;
153+
154+ # WoodMart — support
155+ ~ *woodmart_wishlist_count=[1-9] 1;
156+ ~ *woodmart_compare_list=%5B %22 1;
151157 }
152158
153159 # Skips cache for WooCommerce.
You can’t perform that action at this time.
0 commit comments