]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Notice.php
use codeKey() in activity caching
[quix0rs-gnu-social.git] / classes / Notice.php
index 46e1dca35e57f87022a2aab3230c53aa7a2b10e1..d6710c3e272b8eea85ddf7a4c4cfdfcb0c27e755 100644 (file)
@@ -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;
     }