Use cached query results for favorited. Might cause pagination issues.

This commit is contained in:
Evan Prodromou 2009-01-22 19:14:18 +01:00
parent 8c79646e53
commit 55037403c5
1 changed files with 3 additions and 4 deletions

View File

@ -181,10 +181,9 @@ class FavoritedAction extends Action
$qry .= ' LIMIT ' . $offset . ', ' . $limit; $qry .= ' LIMIT ' . $offset . ', ' . $limit;
} }
// XXX: Figure out how to cache this query $notice = Memcached_DataObject::cachedQuery('Notice',
sprintf($qry, common_config('popular', 'dropoff')),
$notice = new Notice; 600);
$notice->query(sprintf($qry, common_config('popular', 'dropoff')));
$nl = new NoticeList($notice, $this); $nl = new NoticeList($notice, $this);