From: Evan Prodromou Date: Sat, 22 Nov 2008 16:52:34 +0000 (-0500) Subject: blow last cache for faves X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=24ad0b3c13c319995b1515f6fb3054334f90fee9;p=quix0rs-gnu-social.git blow last cache for faves darcs-hash:20081122165234-84dde-d9d6a608434502cb3d5fb09f04d0c641900c3134.gz --- diff --git a/classes/User.php b/classes/User.php index 55c0f45768..75dd733151 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'); } } }