Revert "add the worlds most ugliest caching code"

This reverts commit 228da72825.
This commit is contained in:
Lukas Schauer 2021-02-12 14:25:29 +01:00
parent 6f33aabd6c
commit 6cf52103ef
No known key found for this signature in database
GPG key ID: 9C4DBE6CF438F333
2 changed files with 0 additions and 10 deletions

View file

@ -70,7 +70,6 @@ try {
$route = rtrim($route, '/');
$GLOBALS['forceopen'] = isset($_GET['forceopen']);
$GLOBALS['regenschedcache'] = isset($_GET['regenschedcache']) && !isset($_SERVER['HTTP_X_REAL_IP']);
// generic template
$tpl = new PhpTemplate('template/page.phtml');

View file

@ -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;
}