title: Optimize loading time of php page
body: <p>I have got a simple PHP page requesting a list of addresses from a MySQL database. The database table has got 1257 entries. I also include a dynamically loaded side menu to browse to other sites. 
  Together I got 5 MySQL requests</p>
  
  <ol>
  <li>The addresses</li>
  <li>Pagination</li>
  <li>Check whee the user has  got permission to browse</li>
  <li>get all the groups for side menu</li>
  <li>get all sub entries for side menu</li>
  </ol>
  
  <p>The site takes about 5 seconds to load.</p>
  
  <p>I Googled for site load time improvement and found the Google Developer tools with page speed did all the improvements it told me to like enable deflate, change banner size, and so on but it is still at nearly the same loading time. I would like to know if this is common or if there anything I can do to improve the loading time.</p>
  
  <p><strong>EDIT:</strong> I have also indexed the columns and enabled the MySQL cache. I also use foreign keys in the sub entries table which are from the menu group table</p>
  
  <p><strong>EDIT2:</strong> I found the solution the problem was that i used localhost to connect to my db but since im using windows 7 it tried to connect via ipv6 now i change all localhost to 127.0.0.1 and it only takes about 126ms to load my page</p>