1

I am trying to run a php based web app locally using wamp. On making changes to the html script in .php file, the page does not get updated. However, changes in css files are being updated. Any fixes to the issue?

user3437533
  • 41
  • 1
  • 5
  • 1
    Can you tell us more about the issue. What have you tried? Have you tried deleting the contents of the entire file just to see if anything is running or using an error_log or var_dump? Maybe the code you are updating is in a conditional that isn't being fulfilled. Are you using a framework or cms that is employing some sort of caching? – codewizard Jul 31 '14 at 05:34
  • Very less information – Faiz Ahmed Jul 31 '14 at 05:44
  • @CodeWizard: On deleting, it is not displaying the contents on the page. – user3437533 Jul 31 '14 at 05:56
  • On restoring the contents, it has started displaying the changes. But still unable to trace what caused the problem. – user3437533 Jul 31 '14 at 05:57
  • Show us the script .. and which part doesn't get updated .. we cant guess the problem – Syed Qarib Jul 31 '14 at 05:57
  • Based on the fact that the contents aren't being displayed we can assume there isn't an error as it sounds like they were displaying before. Further we can assume there is a conditional that isn't being met further up your code. Use you var dump and error log to debug. Or post the script. – codewizard Jul 31 '14 at 06:09

2 Answers2

11

If your code changes dont get reflected when you view the page, it has probably been cached by the browser.

Always use CTRL + F5 so the cache is refreshed when making changes.

Alternatively most browsers have developer extension and one of those is usually an option to turn off caching. You should look for that and set it while developing a site.

How do I Disable FireFox's Browser Cache COMPLETELY?

How to disable caching in Internet Explorer 9?

Disabling Chrome cache for website development

Community
  • 1
  • 1
RiggsFolly
  • 83,545
  • 20
  • 96
  • 136
3

If you disable both of these lines in the php.ini file, this should no longer happen.

soap.wsdl_cache_enabled=0

opcache.enable=0

At least that worked for me.

Hope it helps.

Recoil UK
  • 31
  • 1