Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is my PHP file using MAMP not refreshing?

Tags:

php

mamp

I have a pretty standard PHP file that I use with MAMP to replicate apache on my local machine.

But for some reason when I make a change to the php file, the changes are not reflected even when I hard refresh in Chrome (multiple times.)

Even simple changes to the HTML are not reflected.

I changed the Document Root, restarted Apache and made sure PHP wasn't running any cache extensions in MAMP.

like image 972
Joe Isaacson Avatar asked Oct 04 '13 17:10

Joe Isaacson


1 Answers

I just ran into this. I found the answer in another thread -- it's the OPcode caching, which you can disable by commenting out some lines in php.ini.

See: https://stackoverflow.com/a/19268769

like image 156
wjdennen Avatar answered Sep 20 '22 00:09

wjdennen