diff options
author | Evan Prodromou <evan@status.net> | 2009-12-12 15:35:05 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-12-12 15:35:05 -0500 |
commit | 138ce0cd05e2e59c79b29f5eeea5c11d1e56e931 (patch) | |
tree | 2a6e5a0c2230c8929dc9a8e2d2405184921bfc4d /classes/Notice.php | |
parent | a3660fbea46be4d9408cd0f824166a75b8c865ab (diff) |
add statuses/retweeted_by_me api action
Diffstat (limited to 'classes/Notice.php')
-rw-r--r-- | classes/Notice.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index ec80f763f..6a701ae0c 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -454,6 +454,15 @@ class Notice extends Memcached_DataObject // XXX: only blow if <100 in cache $ck = common_cache_key('notice:repeats:'.$this->repeat_of); $result = $cache->delete($ck); + + $user = User::staticGet('id', $this->profile_id); + + if (!empty($user)) { + $uk = common_cache_key('user:repeated_by_me:'.$user->id); + $cache->delete($uk); + $user->free(); + unset($user); + } } } } |