mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Adjusted cache-times and added SatTimers to cache (10minutes)
This commit is contained in:
@@ -12,7 +12,7 @@ class Contestcalendar extends CI_Controller {
|
||||
$rssUrl = 'https://www.contestcalendar.com/calendar.rss';
|
||||
if (!$rssRawData = $this->cache->get('RssRawContestCal')) {
|
||||
$rssRawData = file_get_contents($rssUrl, true);
|
||||
$this->cache->save('RssRawContestCal', $rssRawData, (60*12));
|
||||
$this->cache->save('RssRawContestCal', $rssRawData, (60*60*12));
|
||||
}
|
||||
$data['rss'] = simplexml_load_string($rssRawData, null, LIBXML_NOCDATA);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user