Cachingtime for SAT to 1min.

This commit is contained in:
int2001
2024-02-18 14:50:09 +00:00
parent 5d8772a752
commit 3781671274

View File

@@ -21,7 +21,7 @@ class Sattimers extends CI_Controller {
$this->load->driver('cache', array('adapter' => 'file', 'backup' => 'file'));
if (!$RawData = $this->cache->get('SatTimers'.strtoupper($this->stations->find_gridsquare()))) {
$RawData = file_get_contents($url, true);
$this->cache->save('SatTimers'.strtoupper($this->stations->find_gridsquare()), $RawData, (60*10));
$this->cache->save('SatTimers'.strtoupper($this->stations->find_gridsquare()), $RawData, (60*1));
}
$json = $RawData;