Search code examples
apachewampbitnami

WAMP won't update immediately?


I install WAMP on windows 7 and never touch the configuration at all.

But my WAMP seems slow in updating the content.

For example I have a php file that print A, open the browser and successfully printed A.

Then I replace the A into B, save the php, open the browser but the browser still print A, keep refreshing it until 1 or 2 minutes, then the browser finally print B.

Is that normal? Any way to make it faster?

Note:

  • Changing the browser doesn't change anything (still A until next 1 or 2 mins)
  • Clearing browser's cache doesn't make any change too
  • Ctrl + F5 also doesn't work
  • Restarting the apache does help. It's faster than waiting for 1 mins, But it's pain to do it everytime I update my php

Solution

  • I think BITNAMI comes with opcache configured to be on and active.

    Edit the php.ini file and change option opcache.enable from 1 to 0

    Using opcache is fine for a LIVE server, but has the potential to do exactly what you are reporting to a development server