title: Magento cache wrong read permissions?
body: <p>There seems to be a problem in Magento's reading of the var/cache directory. I've disabled Full Page Caching for testing.</p>
  
  <p>When I execute the bash command <code>chmod -R 777</code>var/cache/` before loading the page, it loads ~3 seconds quicker (the time it takes before 'mage::dispatch::routers_match' is reached in the Profiler is reduced from ~4 seconds to ~1 second).</p>
  
  <p>This speed-up remains a while but then is lost until the <code>chmod</code> is called again.</p>
  
  <p>I'm guessing this has to do with writing permissions somehow? The odd thing is, the cache contents are afaik owned by the process that is executing magento (the web user).</p>
  
  <p>Does anyone have any clues what could be the problem or what could be changed to prevent this?</p>
  
  <p>(Magento version: 1.12.0.2)</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>It seems that not all cache files are created for the same user, but are created for two different users. Will have to inspect how that is possible..</p>