title: How to make APC (PHP Cache) work?
body: <p>I've read about APC that it speeds up multiple php file sites. So I have this particular project in PHP with many files and i discover that require_once and parsing only class definitions (without executing them) takes most time.</p>
  
  <p>So I've installed APC on my CentOS 5 server. I moved apc.php to my webserver and it displays </p>
  
  <pre class="lang-none prettyprint-override"><code>Hits: 1 (50.0%)
  Misses: 1 (50.0%)
  
  Cached Files    1 (281.1 KBytes)
  </code></pre>
  
  <p>And I can go to website and change subpages and so on, and apc.php still shows only one cached file ??</p>
  
  <p>And in phpinfo() it shows that:</p>
  
  <blockquote>
    <p>APC Support   enabled</p>
  </blockquote>
  
  <p>I don't know what to do. Is APC working (like phpinfo() sais) or is it not? Only one cached file is not much after browsing some pages on my website.</p>
  
  <p>And further more how to diagnose errors and make sure that APC works? I've browsed</p>
  
  <blockquote>
    <p>apc.mmap_file_mask    /tmp/apc.QnLqNf /tmp/apc.QnLqNf</p>
  </blockquote>
  
  <p>Directory /tmp but I don't have any files of apc there like it's stated in phpinfo should occur.</p>
  
  <p>Please help me check if APC is working and if not, what can be a problem. </p>