A forum for, well, anything really.
Gripes, moans, ideas or just general chit chat. EXCEPT SPAM!!! - Don't just register to post here - IT WILL GET DELETED!!!
I don't know php, so I'll be no help to you there. However, it seems to me that if you want this only to show on the index page, why not just pull all this from the template and put only the include on the index page? Why ask all the other pages to go through the computation if you already know they aren't going to use it?