title: cakephp 2.5 slow response time
body: <p>Ive got this function:</p>
  
  <pre><code>public function index() {
      $this-&gt;set('var', $this-&gt;Model-&gt;find('all'));
  }
  </code></pre>
  
  <p>This action takes more than 3 seconds to be finished. When i commented out the find (query), it took only 0.02 sec. I already tried to set debug to 0 - didnt help. I found that only the first query takes so long to execute, any other query is finished below 0.01sec. I know that cakephp is creating object when calling the database first time and i already debugged that THATS what takes so long to process.</p>
  
  <p>Now my question is : How is that possible that when i execute index from localhost it takes only 0.03 sec but when i do the same on remote server it takes more than 3 seconds? The server is not old nor slow itself and has good processor and RAM. I already tried to set set global innodb_stats_on_metadata=0; but it didnt help too. </p>
  
  <p>Please guys i really need better response time than 3 seconds to simple query. I really need help from you.</p>