CMS Tutorial
DEDECMS
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 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);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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Dreamweaver Mac version
Visual web development tools

Dreamweaver CS6
Visual web development tools




