Use cached query results for favorited. Might cause pagination issues.
This commit is contained in:
parent
8c79646e53
commit
55037403c5
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user