diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2008-09-28 14:18:12 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2008-09-28 14:18:12 -0400 |
commit | 11eed225b799c14519ee46305be11566dbbb22b8 (patch) | |
tree | 4dc135243def012483817dffed9c98ed70c2e2b6 /classes/Notice_tag.php | |
parent | ddf2dce601e312fc06b38cb0dfb15857ff98ff7f (diff) |
blow the cached streams for tags on a new notice
darcs-hash:20080928181812-5ed1f-708380f239b17b2a53b7279aa4a55af11156a5e8.gz
Diffstat (limited to 'classes/Notice_tag.php')
-rw-r--r-- | classes/Notice_tag.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/Notice_tag.php b/classes/Notice_tag.php index e9f00d6d1..5ab6e332a 100644 --- a/classes/Notice_tag.php +++ b/classes/Notice_tag.php @@ -45,4 +45,11 @@ class Notice_tag extends Memcached_DataObject '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)); + } + } } |