roles/nginx: Add fastcgi caching

Bypasses caching for logged in users (right now only for sessions
where the "wordpress_logged_in" cookie is set. Doubles the trans-
actions per second as measured by siege:

    $ siege -d1 -t1M -c50 https://mjanja.ch

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
2015-02-10 23:04:28 +03:00
parent 4ea152bf51
commit 0b90bad6a9
4 changed files with 28 additions and 0 deletions

View File

@ -37,5 +37,6 @@ http {
client_max_body_size 12m;
include fastcgi_cache;
include /etc/nginx/conf.d/*.conf;
}