From b7cfd5d0e4a7b996047d94380eb76f592e646ed5 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Mon, 9 Jan 2012 10:44:26 +1100 Subject: [PATCH] use cache even if SQL query result was empty --- mod.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod.php b/mod.php index 2a2eec5b..e87755e1 100644 --- a/mod.php +++ b/mod.php @@ -320,10 +320,10 @@ sprintf($config['file_page'], $post['thread']) . '#' . $match[1] : sprintf($config['file_page'], $match[1])) . '">$0', $log['text']); - - if($config['cache']['enabled']) - cache::set($log_id, $log['text']); } + + if($config['cache']['enabled']) + cache::set($log_id, $log['text']); } } }