wamp html script not updating

随声附和 提交于 2019-12-08 04:57:06

问题


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?


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/25051440/wamp-html-script-not-updating

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!