aboutsummaryrefslogtreecommitdiff
path: root/model/Schedule.php
diff options
context:
space:
mode:
authorLukas Schauer2021-02-12 14:23:17 +0100
committerLukas Schauer2021-02-12 14:23:17 +0100
commit6f33aabd6c0858ee978bdd24acdae2d60d477b12 (patch)
tree7fb9395d3e297ea06e95acb2ffed462b171de144 /model/Schedule.php
parent4d5936639fc60bf434a80ca6f213fd13fa615be5 (diff)
Revert caching hack for rc3
This reverts commit ecc622911eaba0b6c93c2a3964a49af9d208283e.
Diffstat (limited to 'model/Schedule.php')
-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;