Extended caching times, fixed bans issue

This commit is contained in:
Wruczek 2016-06-29 02:15:14 +02:00
parent 710b7c484b
commit 993dec38eb
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ $banlist = $cache->get('banlist');
if (is_null($banlist)) {
$banlist = array(getBanlist(), date('d-m-Y H:i:s'));
$cache->set('banlist', $banlist, 60);
$cache->set('banlist', $banlist, 600);
}
@ -76,7 +76,7 @@ function getBanlist() {
continue;
$lastnickname = $ban['lastnickname']->toString();
$reason = $ban['reason']->toString();
$reason = $ban['reason'];
$invokername = $ban['invokername']->toString();
$created = date('d-m-Y H:i:s', $ban['created']);
$duration = $ban['duration'];

View File

@ -16,7 +16,7 @@ $tsviewer = $cache->get('tsviewer');
if (is_null($tsviewer)) {
$tsviewer = array(getViewer(), date('d-m-Y H:i:s'));
$cache->set('tsviewer', $tsviewer, 30);
$cache->set('tsviewer', $tsviewer, 300);
}
// print_r ($tsviewer);