diff options
author | Evan Prodromou <evan@status.net> | 2010-01-25 18:10:59 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-25 18:10:59 -0500 |
commit | b6aa1511eb868d740f8893160ce8bef387725867 (patch) | |
tree | a583cfb455da2cd53f6dd27b7cec6ef85cc6894d /classes/Notice_tag.php | |
parent | b3121d09c9dc49579934189fc56a0e0195c673f9 (diff) | |
parent | e26a843caf9f6bb0d11a7128884db235ededcce0 (diff) |
Merge branch 'master' into 0.9.x
Diffstat (limited to 'classes/Notice_tag.php')
-rw-r--r-- | classes/Notice_tag.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/classes/Notice_tag.php b/classes/Notice_tag.php index 79231f0b0..4fd76e8ea 100644 --- a/classes/Notice_tag.php +++ b/classes/Notice_tag.php @@ -86,13 +86,9 @@ class Notice_tag extends Memcached_DataObject function blowCache($blowLast=false) { - $cache = common_memcache(); - if ($cache) { - $idkey = common_cache_key('notice_tag:notice_ids:' . common_keyize($this->tag)); - $cache->delete($idkey); - if ($blowLast) { - $cache->delete($idkey.';last'); - } + self::blow('notice_tag:notice_ids:%s', common_keyize($this->tag)); + if ($blowLast) { + self::blow('notice_tag:notice_ids:%s;last', common_keyize($this->tag)); } } |