Added exception for logged in users

Exception rule to not serve cached pages if the user has a cookie value indicating that they are logged in.
This commit is contained in:
Christiaan Conover 2013-07-10 13:35:54 -04:00
parent 1aa01ea217
commit 3d0a36b396

View file

@ -127,7 +127,10 @@ MEMCACHED_SERVERS
set $memcached_request 0;
}
LOGGEDIN_EXCEPTION
# don't serve cached pages if user is logged in
if ($http_cookie ~* "wordpress_logged_in_" ) {
set $memcached_request 0;
}
if ( $memcached_request = 1) {
memcached_pass memcached-servers;