From 1fb506c27d8d3cd076d0cab8d6b9493cc131e730 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 6 Dec 2010 17:28:22 -0500 Subject: [PATCH] use codeKey() in activity caching --- classes/Notice.php | 4 ++-- lib/activity.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/Notice.php b/classes/Notice.php index 46e1dca35e..d6710c3e27 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -1236,7 +1236,7 @@ class Notice extends Memcached_DataObject function asActivity($cur = null, $source = false) { - $act = self::cacheGet('notice:as-activity:'.$this->id); + $act = self::cacheGet(Cache::codeKey('notice:as-activity:'.$this->id)); if (!empty($act)) { return $act; @@ -1406,7 +1406,7 @@ class Notice extends Memcached_DataObject Event::handle('EndNoticeAsActivity', array($this, &$act)); } - self::cacheSet('notice:as-activity:'.$this->id, $act); + self::cacheSet(Cache::codeKey('notice:as-activity:'.$this->id), $act); return $act; } diff --git a/lib/activity.php b/lib/activity.php index 712800817c..d3eeadcee9 100644 --- a/lib/activity.php +++ b/lib/activity.php @@ -331,7 +331,7 @@ class Activity { $c = Cache::instance(); - $str = $c->get('activity:as-string:'.Cache::keyize($this->id)); + $str = $c->get(Cache::codeKey('activity:as-string:'.$this->id)); if (!empty($str)) { return $str; @@ -559,7 +559,7 @@ class Activity $str = $xs->getString(); - $c->set('activity:as-string:'.Cache::keyize($this->id), $str); + $c->set(Cache::codeKey('activity:as-string:'.$this->id), $str); return $str; } -- 2.39.5