From 02a3f24b92f70531c9bf761729d569b8ce5d307c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 28 Sep 2008 08:01:19 -0400 Subject: single function for important streams, with memcached support I moved the 4 streams for a user (with friends, faves, replies, personal) into functions on the User object. Added a helper function in Notice for making notice streams. Also, will fetch notice streams out of the memcached server, if possible. Made the API, RSS, and HTML output all use the same streams (hopefully cached). Added some code to Notice to blow the cache when a notice is posted. Also, added code to favor and disfavor actions to blow the faves cache, too. darcs-hash:20080928120119-5ed1f-ead542348bcd3cf315be6f42934353154402eb16.gz --- actions/favor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actions/favor.php') diff --git a/actions/favor.php b/actions/favor.php index a4baa817a..7718f84d2 100644 --- a/actions/favor.php +++ b/actions/favor.php @@ -62,7 +62,8 @@ class FavorAction extends Action { } $this->notify($fave, $notice, $user); - + $user->blowFavesCache(); + if ($this->boolean('ajax')) { common_start_html('text/xml'); common_element_start('head'); -- cgit v1.2.3-54-g00ecf