Skip to content Skip to sidebar Skip to footer

Xampp And Ampps Don't Reload Files When Changed

When I change a file in the directory, the change is not reflected on the web page shown when I access it through localhost, but it is shown when I access it directly by the file p

Solution 1:

Press Ctrl-F5 to hard refresh the page (to not use Browser's cache).

If you still see the previous pages or changes, then Apache has mod_cache caching them, or PHP has its opcode cache settings set to not refresh changes for X amount of time.

Solution 2:

I'm using Bitnami and the way I fixed it was to go inside C:\Bitnami\wappstack-version-number\php\php.ini, you can make the following changes and then reset your server:

opcache.enable=0opcache.revalidate_freq=0

My php was updating every 60 seconds before, so I decided to turn that to 0 and just disable caching.

Solution 3:

Its happening because of apache mod_cache caching the resources.

For quick fix. Just restart the Apache server.

In ubuntu i use this below command in terminal to restart the Apache server

systemctl restart apache2

Now refresh the browser, then you will get the updated one.

Solution 4:

It comes out to be an issue with the cache thing, so in simple words all you have to do is to remove the cached data of the specific webpage.

Post a Comment for "Xampp And Ampps Don't Reload Files When Changed"