From ac361791c419126e297e018db9a5fd8b6144c6e2 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 5 Jul 2009 11:32:57 -0400 Subject: [PATCH] fix caching of faves by own, other --- classes/Fave.php | 2 +- classes/User.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/Fave.php b/classes/Fave.php index f4cf6256ff..c3ec62dcf0 100644 --- a/classes/Fave.php +++ b/classes/Fave.php @@ -42,7 +42,7 @@ class Fave extends Memcached_DataObject $ids = Notice::stream(array('Fave', '_streamDirect'), array($user_id, $own), ($own) ? 'fave:ids_by_user_own:'.$user_id : - 'fave:by_user:'.$user_id, + 'fave:ids_by_user:'.$user_id, $offset, $limit); return $ids; } diff --git a/classes/User.php b/classes/User.php index 62a3f8a66e..04b38a0d22 100644 --- a/classes/User.php +++ b/classes/User.php @@ -491,6 +491,8 @@ class User extends Memcached_DataObject // ;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')); } } -- 2.39.5