cache event log size for 600 seconds, not cache the value '600' forever...

This commit is contained in:
Shish 2015-07-12 22:12:37 +01:00
parent 88fead6ba6
commit 1907dc29bc

View File

@ -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);
}
}