comfy/comfortable-mexican-sofa — pull request #229 by jhawthorn (2012-10-03 06:08:03+00:00)
Title: avoid many queries in pages#index

The current pages#index performs multiple queries for each page shown.

This commit Fetches all pages for a site in pages#index, and uses those to find parent and siblings. It also eager loads categories, which are rendered on each page.

This should eliminate all uncached queries.