Many thanks Perusio :Pby zenw - Nginx Mailing List - English
Oh and your too brian mercer, you have been a great help with all your useful articles on nginx and drupal :Pby zenw - Nginx Mailing List - English
Awesome this works great, thanks so much for your help dude!! :)by zenw - Nginx Mailing List - English
Sorry I dont quite understand whats going on in your config. error_page 418 @auth-cache; if ($logged_in) { return 418; what does this do? looked up http error 418 "I'm a teapot" ROFL. so going line by lineby zenw - Nginx Mailing List - English
I suppose when the user hits login or logout button the url needs to be http://example.com/purge if my default logged in page is http://example.com/by zenw - Nginx Mailing List - English
I've also tried this using the userid module I set a custom cookie like so userid on; userid_name "testid"; userid_expires 100s; and set the fastcgi_cache_key like so fastcgi_cache_key $cookie_testid$request_method$scheme$host$request_uri the problem with this setup is when I login or logout, since the key is based on only $cookie_testid without $http_cookie, then the userby zenw - Nginx Mailing List - English
Oh you are Perusio :P I got your config from drupal.org hehe :P and tried your drupal-with-nginx config from github :Pby zenw - Nginx Mailing List - English
Thx for replying, but I have already tried this config from drupal.org. With this config it will not cache the page correct? What I'm trying to do is set every page to be cached whether logged in or not, or more specifically to maintain a separate cache for each user. But I need to differentiate the cache key based on the session cookie. I need to optimize for authenticated performance, ouby zenw - Nginx Mailing List - English
I'm trying to cache per user Drupal using this config : fastcgi_ignore_headers Cache-Control Expires; #tried '__utma' 'Set-Cookie' fastcgi_cache drupal; fastcgi_cache_key $http_cookie$request_method$scheme$host$request_uri; fastcgi_cache_methods GET HEAD; fastcgi_cache_valid any 1s; fastcgi_cache_use_stale error timeout invalid_header updating http_500; fastcgi_max_temp_file_size 2M;by zenw - Nginx Mailing List - English
Are you using google analytics? Check your cookies on each page load to see that they are the same. $http_cookie$request_method$host$request_uri is what I use. You can also try installing the echo module to try and debug the cookie output.by zenw - How to...