diff options
Diffstat (limited to 'actions')
-rw-r--r-- | actions/favorited.php | 7 | ||||
-rw-r--r-- | actions/public.php | 6 |
2 files changed, 9 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); diff --git a/actions/public.php b/actions/public.php index 0ceeef98e..880b651e1 100644 --- a/actions/public.php +++ b/actions/public.php @@ -197,4 +197,10 @@ class PublicAction extends Action 'version' => 'Atom 1.0', 'item' => 'publicatom'))); } + + function showSections() + { + $top = new TopPostersSection($this); + $top->show(); + } } |