From c4c6a9839645c49a981de6f9dcf82fe0c7a0c739 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 4 Aug 2011 15:47:34 +1000 Subject: various bug fixed, introduced ban ID, temporarily broke caching bans with memcached --- inc/functions.php | 9 --------- 1 file changed, 9 deletions(-) (limited to 'inc/functions.php') diff --git a/inc/functions.php b/inc/functions.php index 523d82f5..b461fe99 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -477,13 +477,6 @@ return; } - if($config['memcached']['enabled']) { - // Cached ban? - if($ban = $memcached->get("ban_${board}_${_SERVER['REMOTE_ADDR']}")) { - displayBan($ban); - } - } - $query = prepare("SELECT `set`, `expires`, `reason`, `board`, `uri` FROM `bans` LEFT JOIN `boards` ON `boards`.`id` = `board` WHERE (`board` IS NULL OR `uri` = :board) AND `ip` = :ip ORDER BY `expires` IS NULL DESC, `expires` DESC, `expires` DESC LIMIT 1"); $query->bindValue(':ip', $_SERVER['REMOTE_ADDR']); $query->bindValue(':board', $board); @@ -512,8 +505,6 @@ return; } - if($config['memcached']['enabled']) - $memcached->set("ban_${board}_${_SERVER['REMOTE_ADDR']}", $ban, $ban['expires']); displayBan($ban); } } -- cgit v1.3