edwardtilbury:
Parse Time: 21.064 - Number of Queries: 304 - Query Time: 0.20056295793152
Your database query counts and times are clearly not the bottleneck. In this example, the database portion of the page preparation amounts to only 0.20 second, but the rest of the page preparation took almost 21 seconds.
Thus, the page preparation time is being consumed with activities to process the data from your Image files, your PHP files, and the data received back from the database.
Maybe your server's filesystem (hard disk) is overloaded or running extremely slowly?
Maybe your image files are taking a long time to load up? Or maybe your server's PHP configuration isn't working properly when trying to handle image metadata?
Maybe you've got several addons installed that are changing how things operate? Have you tried turning off every addon you've added?
Maybe you've installed some sort of caching addon that's malfunctioning and actually making things worse instead of better?
You haven't indicated "when" the problem first started. How does the "when" compare with things like changes made to the site, addons installed, server upgrades by the hosting company, etc?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.