diff options
Diffstat (limited to 'model/Relive.php')
-rw-r--r-- | model/Relive.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/model/Relive.php b/model/Relive.php index 7f0e747..542836d 100644 --- a/model/Relive.php +++ b/model/Relive.php @@ -24,9 +24,14 @@ class Relive return $this->getConference()->get('CONFERENCE.RELIVE_JSON'); } + public function getJsonCache() + { + return sprintf('/tmp/relive-cache-%s.json', $this->getConference()->getSlug()); + } + public function getTalks() { - if(!file_exists($this->getJsonUrl())) + if(!file_exists($this->getJsonCache())) return array(); $talks = file_get_contents($this->getJsonUrl()); |