From 55037403c5d9ab7f73d9f8ee454ba8d33cf313dd Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 22 Jan 2009 19:14:18 +0100 Subject: [PATCH] Use cached query results for favorited. Might cause pagination issues. --- actions/favorited.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/actions/favorited.php b/actions/favorited.php index 0223564f34..4155b3a234 100644 --- a/actions/favorited.php +++ b/actions/favorited.php @@ -181,10 +181,9 @@ class FavoritedAction extends Action $qry .= ' LIMIT ' . $offset . ', ' . $limit; } - // XXX: Figure out how to cache this query - - $notice = new Notice; - $notice->query(sprintf($qry, common_config('popular', 'dropoff'))); + $notice = Memcached_DataObject::cachedQuery('Notice', + sprintf($qry, common_config('popular', 'dropoff')), + 600); $nl = new NoticeList($notice, $this); -- 2.39.5