HTTP level caching, so we can stick varnish in front of the web pages

This commit is contained in:
Shish
2011-12-27 19:23:37 +00:00
parent 9b93df4e22
commit cfbeddde9f
3 changed files with 23 additions and 2 deletions

View File

@ -79,6 +79,11 @@ 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) {
# 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'), "/");
}
log_info("user", "Logged out");
$page->set_mode("redirect");
$page->set_redirect(make_link());