title: How to check if APC opcode cache is working fine in PHP?
body: <p>I am using PHP with APC cache enabled:</p>
  
  <pre><code>apc.cache_by_default =&gt; On
  apc.enabled =&gt; On
  apc.ttl =&gt; 7200
  </code></pre>
  
  <p>Now how can I know if it is using the opcode cache 100%.  </p>
  
  <p>For example, let us say that I have this PHP file:</p>
  
  <pre><code>&lt;?php
  echo "Hi there";
  ?&gt;
  </code></pre>
  
  <p>Now after running this file, let us change it to <code>echo "Bye there";</code></p>
  
  <p>Shouldn't it echo "Hi there" since the TTL of 7200 seconds is not over yet? Am I right? If so, why does it echo "Bye there"? And if I am wrong how can I force it to use the opcode cache even after changing the file?</p>