Skip to content

Commit 2564bc3

Browse files
authored
Merge pull request #141 from psaux-it/busy_buffer
increased FastCGI busy buffer size and added JSON to supported MIME t…
2 parents fdb572a + 921a019 commit 2564bc3

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

nginx/nginx.conf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ worker_processes auto;
1010
events {
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 ########
@@ -20,7 +21,7 @@ http {
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;
@@ -74,6 +75,7 @@ http {
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.

0 commit comments

Comments
 (0)