aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Schauer2021-02-12 14:25:29 +0100
committerLukas Schauer2021-02-12 14:25:29 +0100
commit6cf52103ef9e78e16f822feeac24bab48b88e172 (patch)
treeca6cf63b87f988513a6ef4f5c25d0369961283f4
parent6f33aabd6c0858ee978bdd24acdae2d60d477b12 (diff)
Revert "add the worlds most ugliest caching code"
This reverts commit 228da728257c2f2c4e059c8d0e5fef5f4ae2e36c.
-rw-r--r--index.php1
-rw-r--r--model/Schedule.php9
2 files changed, 0 insertions, 10 deletions
diff --git a/index.php b/index.php
index 35db28f..1c0df61 100644
--- a/index.php
+++ b/index.php
@@ -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');
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;
}