diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-01-22 19:14:18 +0100 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-01-22 19:14:18 +0100 |
commit | 55037403c5d9ab7f73d9f8ee454ba8d33cf313dd (patch) | |
tree | d3e24bb5d7dac0c7d84730275c160bc64d68f958 /actions/favorited.php | |
parent | 8c79646e53b201434d5c8f36e85b2c9cb1026f0f (diff) |
Use cached query results for favorited. Might cause pagination issues.
Diffstat (limited to 'actions/favorited.php')
-rw-r--r-- | actions/favorited.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/actions/favorited.php b/actions/favorited.php index 0223564f3..4155b3a23 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); |