Originally posted by Detty:
That's why they all tend to come with built in caching functionality. There a lot of tricks you can use to optimise loading times, but there's no point worrying about it until you have performance issues - instead use your time developing code unique to your project rather than reinventing the wheel.
Caching is also usually done on the webserver itself. I know that IIS7's kernel mode caching, for example, is ridiculously fast. The article I read about it was caching PHP (through FastCGI) and got 16,000 views per second with the client and server on the same machine. It was like a modest Core 2 Duo. On a real, dedicated server it's probably even faster.
Bassoon, n. A brazen instrument into which a fool blows out his brains.