drupal-with-nginx
drupal-with-nginx copied to clipboard
Custom front page setting breaks microcache
Hi, I've noticed some strange behavior on my production site. I recently implemented custom ordering of my front page content using views: ie created a frontpage view, and set it to be the default front page in "Site configuration". When I do this, drupal sets a session cookie which prevents the microcache from hitting. When I set it back to the default "/" microcache hits again. Any ideas?
UPDATE: the problem was with a drupal module, not the nginx config - nevermind...
Could you please post which module it was? I am actualy running into the same issue.
its been a while, and I haven't been actively working on that project recently, but from my git log I believe it might have been views_random_seed. I found a patch 1344198-2.patch that helped me around that time - good luck. I believe the issue is that randomizing content for anonymous users is implemented in a way that requires the seed to be sent to the individual user. I think I ended up using a computed field to get around it.
Hm, I am not using this module ... Anyway, thx for you fast respons, I will post it here if I could find out what is generating my unwanted cookie.
UPDATE: Mine cookie got set by the module "Pagestyle", i opened a stackoverflow thread here: http://drupal.stackexchange.com/questions/128206/anonymous-user-gets-cookie/128337