diff options
author | Zach Copley <zach@status.net> | 2010-09-28 15:46:14 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-09-29 16:35:12 -0700 |
commit | 3960c9ad39d96cdfef390065f15f9f0fc280f37c (patch) | |
tree | 48d080155b6e1836b8ac33dfb20c87ed1b534d83 /classes/User.php | |
parent | c19e592fa80f616a18718c4650ea0ffc9661f7ce (diff) |
Move blowFavesCache() to Profile
Diffstat (limited to 'classes/User.php')
-rw-r--r-- | classes/User.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/classes/User.php b/classes/User.php index 27299e62e..e784fd9e9 100644 --- a/classes/User.php +++ b/classes/User.php @@ -482,17 +482,8 @@ class User extends Memcached_DataObject function blowFavesCache() { - $cache = common_memcache(); - 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')); - } $profile = $this->getProfile(); - $profile->blowFaveCount(); + $profile->blowFavesCache(); } function getSelfTags() |