Forum Moderators: coopster
I'm wondering the pros and cons of "preassembling" PHP pages and storing the code in a mysql table rather than parsing them on the fly.
I run a nationwide business directory, and each business' profile draws data from about 13 tables. In the past few weeks our traffic has shot up to 35,000 pageviews/day, which caused our dedicated server to lag a bit. To speed things up, I started storing each profile's HTML code in a table, hoping that a single mysql request (upon each pageview) would be much more efficient than a dozen. (The code is refreshed any time a member makes a change to his/her profile.)
This approach seems to be faster, but I'm not sure what the consequences will be as our traffic continues to rise. Thoughts? Advice?