This issue has nothing to do with queries in the php page. I have two identical files with different names. Test.php and Test.html There are no SQL queries, they are both html only files. Test.html takes about 0.5 seconds to load, but test.php takes about 2 seconds to load. This problem only occurs when I have a large MySQL database (500 megabytes). When I have a small MySQL database they both load at the same speed.
What can I do to fix the problem? How can I speed up php parsing? PHP parsing is slow even when there is no php to parse.