mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Cachingtime for SAT to 1min.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user