Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

Interesting post on speeding up sites using Nginx microcaching

edited October 2011 in Miscellaneous

This post uses a custom Nginx configuration technique to "microcache" dynamic content for 1-2 seconds, drastically increasing site performance while ensuring content is at most only 2 seconds stale:

http://fennb.com/microcaching-speed-your-app-up-250x-with-no-n

An option could easily be added to this to check for logged in users by checking for Elefant's user session_id cookie, ensuring they always see fresh content, like this:

    if ($http_cookie ~* "session_id") {
        set $no_cache "1";
    }

Thought I'd share!

Johnny

Sign In or Register to comment.