title: What does Wordpress do on just the home page (slow loading)?
body: <p>I have a problem with a wordpress site and I really can't figure out what causes it.</p>
  
  <p>All the pages in the site load perfectly fine, they are quite stuffed with content but the load time is ok and so is memory usage as they have no problem with a 32M memory limit set in <code>wp-settings.php</code>.</p>
  
  <p>The problem comes with the home page. It takes several seconds to load (excluding other content, just the main request) and fails (where 'fails' stands for blank page shown) unless I raise the memory limit <strong>above 300M</strong>.</p>
  
  <h3>Possible suggestion 1: check <code>index.php</code> code</h3>
  
  <p>Done. I replaced it with a blank page only containing the word <code>TEST</code>, still same slow loading and blank page.</p>
  
  <h3>Possible suggestion 2: disable all plugins</h3>
  
  <p>Done. Disabled each and every plugin and still same exact behaviour.</p>
  
  <h3>My current workaround</h3>
  
  <p>The only thing that I could find to temporarily solve the issue, is redirecting (via wordpress' internal rewrite) any request for <code>/</code> to a custom page which is linked to <code>index.php</code>. This way I have the homepage working fine, quickly and under the 32M memory limit.</p>
  
  <p>Now, this works but it's a horribly dirty hack, so how can I find out what wordpress is doing when I ask for the home page <strong>before</strong> loading the template given that it has nothing to do with plugins?</p>