From 1907dc29bca1423fa06088f898ef80d17c6edb4c Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 12 Jul 2015 22:12:37 +0100 Subject: [PATCH] cache event log size for 600 seconds, not cache the value '600' forever... --- ext/log_db/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/log_db/main.php b/ext/log_db/main.php index c72c51cd..3b1bab40 100644 --- a/ext/log_db/main.php +++ b/ext/log_db/main.php @@ -96,7 +96,7 @@ class LogDatabase extends Extension { $page_total = $database->get_one("SELECT count(*) FROM score_log $where", $args); // don't cache a length of zero when the extension is first installed if($page_total > 10) { - $database->cache->set("event_log_length", 600); + $database->cache->set("event_log_length", $page_total, 600); } }