Skip to content

Commit

Permalink
nginx: bump cache time to 1h
Browse files Browse the repository at this point in the history
pywb: try w/o gevent
  • Loading branch information
ikreymer committed Dec 1, 2015
1 parent 192f09b commit 1aa8ea0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ http {
include uwsgi_params;

#uwsgi_cache APP;
#uwsgi_cache_valid 200 302 10m;
#uwsgi_cache_valid 200 302 1h;
#uwsgi_cache_key $request_uri;

uwsgi_buffers 16 64k;
Expand All @@ -70,7 +70,7 @@ http {
proxy_buffer_size 128k;
proxy_buffers 100 128k;

proxy_cache_valid 200 10m;
proxy_cache_valid 200 1h;
proxy_cache_valid 404 1m;
proxy_force_ranges on;

Expand Down
7 changes: 4 additions & 3 deletions pywb/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ if-env = VIRTUAL_ENV
venv = $(VIRTUAL_ENV)
endif =

processes = 10
gevent = 100
gevent-early-monkey-patch =
processes = 20
threads = 20
#gevent = 100
#gevent-early-monkey-patch =

cache2 = name=sesh,items=500,blocksize=64,keysize=64

Expand Down

0 comments on commit 1aa8ea0

Please sign in to comment.