So i have a site that I am working on that has been touched by many developers over time and as new features arised the developers at the time felt it necessary to just add another query to get the data that is needed. Which leaves me with a php page that is slow and runs maybe 70 queries. Some of the queries are in the actual PHP file for this page and some are scattered throughout many different function. Now i have the responsibility of trying to speed up the page to meet certain requirements. I am seeking the best course of action.
- Is there a way to print all the queries that are running other then going through the file and finding each and every one?
- should I cache the queries that are slow using memcached?
- Is there an idea that anyone has had to help me speed up the page?
- Is there a plugin or tool to analyze the queries, I am using YSlow and there is nothing there to look at queries?