From 6cf52103ef9e78e16f822feeac24bab48b88e172 Mon Sep 17 00:00:00 2001 From: Lukas Schauer Date: Fri, 12 Feb 2021 14:25:29 +0100 Subject: Revert "add the worlds most ugliest caching code" This reverts commit 228da728257c2f2c4e059c8d0e5fef5f4ae2e36c. --- model/Schedule.php | 9 --------- 1 file changed, 9 deletions(-) (limited to 'model') diff --git a/model/Schedule.php b/model/Schedule.php index 5419136..52eac4e 100644 --- a/model/Schedule.php +++ b/model/Schedule.php @@ -72,11 +72,6 @@ class Schedule public function getSchedule() { - $cachefile = sprintf('/tmp/getschedule-cache-%s.cache', $this->getConference()->getSlug()); - if(file_exists($cachefile) && !$GLOBALS['regenschedcache']) { - return unserialize(file_get_contents($cachefile)); - } - // download schedule-xml $schedule = $this->fetchSchedule(); @@ -266,10 +261,6 @@ class Schedule }); } - if($GLOBALS['regenschedcache']) { - file_put_contents($cachefile, serialize($program)); - } - return $program; } -- cgit v1.2.3