title: Query Caching in PHP For mySQL Performance
body: <p>I'm looking for a system to cache an already coded project (with PHP) which has features like registration and login system etc.</p>
  
  <p>I have searched for some caching solutions, but I read that the logging in and posting system fails if I use such features.</p>
  
  <p>What I actually need is to store results of some spesific DB queries, if there's a cache, call that results, if not generate a new cache, and re-cache them in each x minutes. (results can be stored in txt. etc). </p>
  
  <p>How can I do that?</p>
  
  <p>By the way, setting query_cache_type to 1 don't work. I'm looking for alternative solutions.</p>
  
  <p>Thanks</p>