Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After removing varnish cache from local server I noticed strange behaviour of Apache server. When ever you update a php file and try to open it in a browser old response is shown, CTRL + F5 does not refresh a page, but if you type in service apache2 restart all changes appear.

Can some one point what could possibly went wrong?

share|improve this question
up vote 2 down vote accepted

You may have apc.stat set to 0 in which case APC will always serve the cached version of PHP files without checking the file on disk for changes anymore.

You can find out with a <?php phpinfo() ?> on any page.

To change that setting, check the content of /etc/php5/conf.d/apc.ini.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.