Don't cache ghost-ban announcement pages
This commit is contained in:
parent
efdc903263
commit
a1e67e97b7
1 changed files with 2 additions and 0 deletions
|
@ -153,12 +153,14 @@ class IPBan extends Extension
|
|||
$b = new Block(null, $msg, "main", 0);
|
||||
$b->is_content = false;
|
||||
$page->add_block($b);
|
||||
$page->add_cookie("nocache", "Ghost Banned", time()+60*60*2, "/");
|
||||
$event->user->class = $_shm_user_classes["ghost"];
|
||||
} elseif ($row["mode"] == "anon-ghost") {
|
||||
if ($event->user->is_anonymous()) {
|
||||
$b = new Block(null, $msg, "main", 0);
|
||||
$b->is_content = false;
|
||||
$page->add_block($b);
|
||||
$page->add_cookie("nocache", "Ghost Banned", time()+60*60*2, "/");
|
||||
$event->user->class = $_shm_user_classes["ghost"];
|
||||
}
|
||||
} else {
|
||||
|
|
Reference in a new issue