简体   繁体   English

更改wordpress上的php文件中的代码后,网站无法获得更新

[英]after changing the code in a php file on wordpress the website doesn't get the update

i am creating a website using wordpress and i am adding custom php files and templates to the selected theme . 我正在使用wordpress创建一个网站,我正在为所选主题添加自定义php文件和模板。

the problem is that when i change the code the website doesn't take the updated code. 问题是,当我更改代码时,网站不会采用更新的代码。

i have a cache plugins ( WP super cache ) and i empty the cache but still doesn't get the update. 我有一个缓存插件( WP超级缓存 ),我清空缓存但仍然没有得到更新。 i am using the Mozilla browser. 我正在使用Mozilla浏览器。

what cloud be the problem and how to fix it ?? 云是什么问题以及如何解决它?

i tried to change this line of code but still not getting the updated code on the website. 我试图改变这行代码,但仍然没有在网站上获得更新的代码。

old code 旧代码

<input type="text" class="form-control" id="name" name="name" placeholder="Enter Name" required/>

new code 新代码

<input type="text" class="form-control" id="name" name="name" placeholder="Enter **** your Name" required/>

Its due to the cache issue.You will follow this steps to remove cache. 它是由于缓存问题。您将按照此步骤删除缓存。

  1. Disable caching plugins 禁用缓存插件
  2. Purge cache from browser.Click the Refresh button on the browser toolbar or press the F5 key on your keyboard. 从浏览器清除缓存。单击浏览器工具栏上的“刷新”按钮或按键盘上的F5键。
  3. Try different browser or private window. 尝试不同的浏览器或私人窗口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM