Extended caching times, fixed bans issue

pull/13/head
Wruczek 9 years ago
parent 710b7c484b
commit 993dec38eb

@ -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'];

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

Loading…
Cancel
Save