Home > CMS Tutorial > DEDECMS > body text

What should I do if the front-end display has not been updated after modifying the DedeCMS advertising module?

藏色散人
Release: 2020-01-08 09:39:38
Original
2612 people have browsed it

What should I do if the front-end display has not been updated after modifying the DedeCMS advertising module?

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);
Copy after login

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);
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template