shm_user breaks varnish cache

This commit is contained in:
Shish 2012-01-26 16:51:24 +00:00
parent c46f03bf8f
commit 52bbb36af4

View file

@ -79,7 +79,7 @@ class UserPage extends SimpleExtension {
}
else if($event->get_arg(0) == "logout") {
set_prefixed_cookie("session", "", time()+60*60*24*$config->get_int('login_memory'), "/");
if(CACHE_HTTP) {
if(CACHE_HTTP || SPEED_HAX) {
# to keep as few versions of content as possible,
# make cookies all-or-nothing
set_prefixed_cookie("user", "", time()+60*60*24*$config->get_int('login_memory'), "/");