From: Evan Prodromou Date: Thu, 25 Jun 2009 09:11:34 +0000 (-0700) Subject: blow cache when new notice in conversation is saved X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=79547d99cf59fe9e2df94e33989d5a1d3b85be1b;p=quix0rs-gnu-social.git blow cache when new notice in conversation is saved --- diff --git a/classes/Notice.php b/classes/Notice.php index 6f9b73be4b..8689dd427a 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -339,6 +339,19 @@ class Notice extends Memcached_DataObject $this->blowPublicCache($blowLast); $this->blowTagCache($blowLast); $this->blowGroupCache($blowLast); + $this->blowConversationCache($blowLast); + } + + function blowConversationCache($blowLast=false) + { + $cache = common_memcache(); + if ($cache) { + $ck = 'notice:conversation:'.$this->conversation; + $cache->delete($ck); + if ($blowLast) { + $cache->delete($ck.';last'); + } + } } function blowGroupCache($blowLast=false)