diff --git a/wp-ffpc-nginx-sample.conf b/wp-ffpc-nginx-sample.conf index 0f79d84..f7e5e2e 100644 --- a/wp-ffpc-nginx-sample.conf +++ b/wp-ffpc-nginx-sample.conf @@ -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;