I built a site that went live about a month back - no real problems. Then today the page load time is suddenly up to 50-100 seconds. After spending hours looking at MySQL I figured it was the @GetImageSize calls I was using to check if an image existed.
I fixed it by using the absolute file path rather than the URL of the file.
This is running on a dedicated server, so I'm assuming that no changes were made to the config overnight.
Utterly baffled!