]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix for changed cache functions in code merged up from 0.9.x
authorBrion Vibber <brion@pobox.com>
Fri, 29 Oct 2010 23:31:25 +0000 (16:31 -0700)
committerBrion Vibber <brion@pobox.com>
Fri, 29 Oct 2010 23:31:25 +0000 (16:31 -0700)
classes/Profile.php

index e05b8bf27b9cbbd76e7869fb8f3cd2a24c5e847d..23042fa43afafe77d39d03490abcb390c3602e97 100644 (file)
@@ -553,14 +553,14 @@ class Profile extends Memcached_DataObject
 
     function blowFavesCache()
     {
-        $cache = common_memcache();
+        $cache = Cache::instance();
         if ($cache) {
             // Faves don't happen chronologically, so we need to blow
             // ;last cache, too
-            $cache->delete(common_cache_key('fave:ids_by_user:'.$this->id));
-            $cache->delete(common_cache_key('fave:ids_by_user:'.$this->id.';last'));
-            $cache->delete(common_cache_key('fave:ids_by_user_own:'.$this->id));
-            $cache->delete(common_cache_key('fave:ids_by_user_own:'.$this->id.';last'));
+            $cache->delete(Cache::key('fave:ids_by_user:'.$this->id));
+            $cache->delete(Cache::key('fave:ids_by_user:'.$this->id.';last'));
+            $cache->delete(Cache::key('fave:ids_by_user_own:'.$this->id));
+            $cache->delete(Cache::key('fave:ids_by_user_own:'.$this->id.';last'));
         }
         $this->blowFaveCount();
     }