i rewrote this so that it will write the whole page to a file and then access that file from then on to display the page instead of doing all the routines. not sure if it really cuts down on server use or anything. if this helps you let me know and ill send it to you to look at.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.