ExecuteNoneQuery($query){};"; finally enter the background to update the ads. Information is enough."/> ExecuteNoneQuery($query){};"; finally enter the background to update the ads. Information is enough.">
search
HomeCMS TutorialDEDECMSWhat 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!

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Safe Exam Browser

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

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools