diff options
author | Brion Vibber <brion@pobox.com> | 2010-04-30 13:15:53 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-04-30 13:16:13 -0700 |
commit | cae1329f3bca1f5f1fbfdb1d96b38cbb790fbe00 (patch) | |
tree | 21ae74d08b6496c7d7fafbe95a9b147a9ac56cc0 /classes/Reply.php | |
parent | 5c05cd2b1a93d360bde7cb7dfc9ba39e5a5a7624 (diff) | |
parent | f8883367184e4fd31dc819d5e1257d0eee11eb10 (diff) |
Merge branch '0.9.x' into 1.0.x
Conflicts:
lib/util.php
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'), |