diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-25 02:11:34 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-25 02:11:34 -0700 |
commit | 79547d99cf59fe9e2df94e33989d5a1d3b85be1b (patch) | |
tree | 198fcfb13933f3ffe0dba215daea517dd359eb0e /classes/Notice.php | |
parent | 246013d984245737983054abf7496aa3879cfc58 (diff) |
blow cache when new notice in conversation is saved
Diffstat (limited to 'classes/Notice.php')
-rw-r--r-- | classes/Notice.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index 6f9b73be4..8689dd427 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) |