Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 336
Eternity Neet Avatar asked Oct 12 '25 14:10

Eternity Neet


1 Answers

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

like image 172
RiggsFolly Avatar answered Oct 14 '25 16:10

RiggsFolly



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!