In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Dream weaving DEDE background update ads and no change in the foreground solution? This problem may be our daily study or work often see. I hope you learned something from this question. The following is the reference content brought to you by Xiaobian. Let's take a look together!
Dream weaving DEDE background update ads and no change in the foreground how to do?
Dream weaving DEDE background updated ads and no change in the foreground solution
Recommended Learning: Weaving Dreams CMS
A lot of friends in the background after modifying the ad code, and the foreground ad did not change, this reason is the cache problem.
Solutions for beginners:
If you modify the ad code, then we find the right side of the management, management below there are 3 options,[JS] [Change] [Delete], these 3, then we only need to click JS, here is the preview of this JS ad, and then we go back to the foreground to see if the ad automatically changes?
A complete solution:
In addition, we need to make the following modifications to the advertising module every time we want to preview it. The following is a method to solve the problem published by friends in the forum.
After installing the ad module that comes with DedeCMS, I found that after modifying the ad information, the ad invoked in the foreground is still the information before modification. I checked the source code and found that the cache is invoked, but the ad_edit.php of DedeCMS does not delete the original cache after editing and saving the information. Here is the modification as follows:
Open the file dede/ad_edit.php and find the following code:
$dsql-> ExecuteOneQuery ($query);ShowMsg("successfully changed an ad code! ",$ENV_GOBACK_URL);
Amend to the following code:
$dsql-> ExecuteOneQuery ($query);//delete ad cache file begin// dedecms V57_GBK 2011-08-12if(file_exists(DEDEDATA. "/cache/myad-$aid.htm")){@unlink(DEDEDATA. "/cache/myad-$aid.htm");}//Delete ad cache file endShowMsg("successfully changed an ad code! ",$ENV_GOBACK_URL); Thank you for reading! After reading the above content, do you know about the solution to the problem that the background of Dream Weaving DEDE has updated the advertisement and the foreground has not changed? I hope the content of this article is helpful to everyone. If you want to know more about related articles, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.