summaryrefslogtreecommitdiff
path: root/classes/Notice_tag.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-01-26 01:29:10 +0100
committerSarven Capadisli <csarven@status.net>2010-01-26 01:29:10 +0100
commit6cfe5b5a3bfe4cbdecc6adf39f8f7b133fbd7550 (patch)
treef9314cb28d7fbe56c5ab0d3d0ac6211036eb61c8 /classes/Notice_tag.php
parent9bacdb9134b39f97fd244bdc28d9e467ac05b61d (diff)
parente26a843caf9f6bb0d11a7128884db235ededcce0 (diff)
Merge branch 'master' of git@gitorious.org:statusnet/mainline
Diffstat (limited to 'classes/Notice_tag.php')
-rw-r--r--classes/Notice_tag.php10
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));
}
}