$this->blowNoticeCache();
$this->blowRepliesCache();
$this->blowPublicCache();
+ $this->blowTagCache();
+ }
+
+ function blowTagCache() {
+ $cache = common_memcache();
+ if ($cache) {
+ $tag = new Notice_tag();
+ $tag->notice_id = $this->id;
+ if ($tag->find()) {
+ while ($tag->fetch()) {
+ $tag->blowCache();
+ }
+ }
+ $tag->free();
+ unset($tag);
+ }
}
function blowSubsCache() {
'notice_tag:notice_stream:' . $tag,
$offset, $limit);
}
+
+ function blowCache() {
+ $cache = common_memcache();
+ if ($cache) {
+ $cache->delete(common_cache_key('notice_tag:notice_stream:' . $this->tag));
+ }
+ }
}