cache event log size for 600 seconds, not cache the value '600' forever...
This commit is contained in:
parent
88fead6ba6
commit
1907dc29bc
@ -96,7 +96,7 @@ class LogDatabase extends Extension {
|
|||||||
$page_total = $database->get_one("SELECT count(*) FROM score_log $where", $args);
|
$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
|
// don't cache a length of zero when the extension is first installed
|
||||||
if($page_total > 10) {
|
if($page_total > 10) {
|
||||||
$database->cache->set("event_log_length", 600);
|
$database->cache->set("event_log_length", $page_total, 600);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user