


What should I do if the ads in DEDE's backend have been updated but the frontend has not changed?
What should I do if the DEDE backend updates ads but the frontend has no changes?
Many friends have modified the advertising code in the background, but the advertisements in the front desk have not changed. This reason is a caching problem.
Recommended learning: Dream Weaver cms
Solution suitable for novices:
If you modify the advertising code, Then we find the management on the right. There are 3 options under the management, [JS] [Change] [Delete], these 3. At this time we only need to click JS. Here is a preview of the JS ad, and then we will return Go to the front desk and take a look. Have the ads changed automatically?
Comprehensive solution:
In addition, when previewing every time, we need to make the following modifications to the advertising module. The following are posted by friends on the forum You can refer to the following methods to solve it.
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 the ad_edit of DedeCMS. After php edited and saved the information, the original cache was not deleted. The modification is as follows:
Open the file dede/ad_edit.php and find the following code:
$dsql->ExecuteNoneQuery($query); ShowMsg("成功更改一则广告代码!",$ENV_GOBACK_URL);
Modify to the following code:
$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);
The above is the detailed content of What should I do if the ads in DEDE's backend have been updated but the frontend has not changed?. 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

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Dreamweaver Mac version
Visual web development tools

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.

SublimeText3 Chinese version
Chinese version, very easy to use

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool