Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.