aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--model/Schedule.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/model/Schedule.php b/model/Schedule.php
index e182132..5419136 100644
--- a/model/Schedule.php
+++ b/model/Schedule.php
@@ -72,8 +72,7 @@ class Schedule
public function getSchedule()
{
- $cachefile = sprintf('/dev/shm/getschedule-cache-%s.cache', $this->getConference()->getSlug());
- $tmpcachefile = sprintf('/dev/shm/getschedule-cache-%s.cache.new', $this->getConference()->getSlug());
+ $cachefile = sprintf('/tmp/getschedule-cache-%s.cache', $this->getConference()->getSlug());
if(file_exists($cachefile) && !$GLOBALS['regenschedcache']) {
return unserialize(file_get_contents($cachefile));
}
@@ -268,8 +267,7 @@ class Schedule
}
if($GLOBALS['regenschedcache']) {
- file_put_contents($tmpcachefile, serialize($program));
- rename($tmpcachefile, $cachefile);
+ file_put_contents($cachefile, serialize($program));
}
return $program;