aboutsummaryrefslogtreecommitdiff
path: root/model/Schedule.php
diff options
context:
space:
mode:
Diffstat (limited to 'model/Schedule.php')
-rw-r--r--model/Schedule.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/model/Schedule.php b/model/Schedule.php
index db93c4d..86fb111 100644
--- a/model/Schedule.php
+++ b/model/Schedule.php
@@ -232,7 +232,7 @@ class Schedule extends ModelBase
if(!$this->isCacheEnabled())
return null;
- return apc_fetch('SCHEDULE.CACHE');
+ return apc_fetch($this->getCacheKey());
}
private function doCache($value)
@@ -242,10 +242,15 @@ class Schedule extends ModelBase
if(!$this->isCacheEnabled())
return $value;
- apc_store('SCHEDULE.CACHE', $value, $this->getCacheDuration());
+ apc_store($this->getCacheKey(), $value, $this->getCacheDuration());
return $value;
}
+ private function getCacheKey()
+ {
+ return 'SCHEDULE.'.$this->getScheduleUrl();
+ }
+
private function getScheduleToRoomSlugMapping()
{
$mapping = array();