Adjusted cache-times and added SatTimers to cache (10minutes)

This commit is contained in:
int2001
2024-02-18 09:01:47 +00:00
parent 8502031eb9
commit 2f012217c6
3 changed files with 44 additions and 35 deletions

View File

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