diff options
author | Brion Vibber <brion@pobox.com> | 2010-10-29 16:31:25 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-10-29 16:31:25 -0700 |
commit | 96521f38d2f6db7a85e17f2f7f6e4eabeaa06cf8 (patch) | |
tree | 8679e3f9ea88f11fde736ab5cfc2724d38925ba5 /classes/Profile.php | |
parent | f5019ac5aac229b9ac118a905703c675688e4ed0 (diff) |
Fix for changed cache functions in code merged up from 0.9.x
Diffstat (limited to 'classes/Profile.php')
-rw-r--r-- | classes/Profile.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/classes/Profile.php b/classes/Profile.php index e05b8bf27..23042fa43 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -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(); } |