What should I do if the front-end display is not updated after modifying the DedeCMS advertising module?
Modify the DedeCMS advertising module, and the foreground display is not updated. Solution
Recommended learning: Dreamcms
If you modify the DreamWeaver background advertising settings and the front desk fails to display the latest modifications, you can refer to the following methods to solve the problem.
After installing the advertising module that comes with dedecms, I found that after modifying the advertising information, the advertisement called by the front desk still had the previous modified information. I checked the source code and found that the cache was called, but dedecms' ad_edit. PHP did not delete the original cache after editing and saving the information. It is a small bug. Here is the modification:
Open dede\ad_edit.php and find about line 70
$dsql->ExecuteNoneQuery($query); ShowMsg("成功更改一则广告代码!",$ENV_GOBACK_URL);
and modify it to
$dsql->ExecuteNoneQuery($query); // 删除广告缓存文件 begin // dedecms V57_GBK 2011-08-12 if(file_exists(DEDEDATA."/cache/myad-$aid.htm")){ @unlink(DEDEDATA."/cache/myad-$aid.htm"); } // 删除广告缓存文件 end ShowMsg("成功更改一则广告代码!",$ENV_GOBACK_URL);
Now go to the background to update the advertising information!
The above is the detailed content of What should I do if the front-end display has not been updated after modifying the DedeCMS advertising module?. For more information, please follow other related articles on the PHP Chinese website!