By using this site, you agree to our Privacy Policy and our Terms of Use. Close

What if you did it in thread.php instead?  Instead of determining the last page by looking up the number of posts in each thread, and passing in start=100 or whatever, pass in start=lastpage, and then let thread.php determine where the last page is.  That way you don't have to do 20 different lookups on the front page.