diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-11-22 11:52:34 -0500 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-11-22 11:52:34 -0500 |
commit | 24ad0b3c13c319995b1515f6fb3054334f90fee9 (patch) | |
tree | 08c0dcaa379b5719502a3860936ac90e10fb9c44 /classes | |
parent | 5d161f3d24a1033bf8eea68fe6ed9d28063372e8 (diff) |
blow last cache for faves
darcs-hash:20081122165234-84dde-d9d6a608434502cb3d5fb09f04d0c641900c3134.gz
Diffstat (limited to 'classes')
-rw-r--r-- | classes/User.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/User.php b/classes/User.php index 55c0f4576..75dd73315 100644 --- a/classes/User.php +++ b/classes/User.php @@ -386,7 +386,10 @@ 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('user:faves:'.$this->id)); + $cache->delete(common_cache_key('user:faves:'.$this->id).';last'); } } } |