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;
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;
}
{
$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;
$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;
}