We recently added up-front db caching on thread pages so that we can grab all of the attachments, artifactreferences, etc. up front instead of having 25 separate db lookups. The problem is we're grabbing ALL of them. So on a very long thread with 500 replies, we're caching 500 values rather than only those that we care about on this page.
my changes are on dw/8447
- only pre-fetches and caches attributes for the current window of posts (i.e. respecting ?page=3&limit=50)
merged