diff options
author | Evan Prodromou <evan@status.net> | 2010-04-26 02:53:24 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-04-26 02:53:24 -0400 |
commit | 50bfa218141a30c5041957aae60b9be78fe74950 (patch) | |
tree | 3cbc164992cdec2348a6c2908bab197af6c9e227 /classes/Reply.php | |
parent | beaecb18d5b92b913473dfffd545dc436f50cf66 (diff) | |
parent | 8fd0059bf69ed16ed4efad7b8e16dc2afda32e18 (diff) |
Merge branch 'master' of gitorious.org:statusnet/mainline
Diffstat (limited to 'classes/Reply.php')
-rw-r--r-- | classes/Reply.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/classes/Reply.php b/classes/Reply.php index 659e04c92..dc6296bda 100644 --- a/classes/Reply.php +++ b/classes/Reply.php @@ -22,6 +22,20 @@ class Reply extends Memcached_DataObject /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE + /** + * Wrapper for record insertion to update related caches + */ + function insert() + { + $result = parent::insert(); + + if ($result) { + self::blow('reply:stream:%d', $this->profile_id); + } + + return $result; + } + function stream($user_id, $offset=0, $limit=NOTICES_PER_PAGE, $since_id=0, $max_id=0) { $ids = Notice::stream(array('Reply', '_streamDirect'), |