From 6f33aabd6c0858ee978bdd24acdae2d60d477b12 Mon Sep 17 00:00:00 2001 From: Lukas Schauer Date: Fri, 12 Feb 2021 14:23:17 +0100 Subject: Revert caching hack for rc3 This reverts commit ecc622911eaba0b6c93c2a3964a49af9d208283e. --- model/Schedule.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'model') 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; -- cgit v1.2.3