Home  >  Article  >  CMS Tutorial  >  How to deal with the cache in the Dreamweaver column that causes the number of newly published articles and pagination to be out of sync?

How to deal with the cache in the Dreamweaver column that causes the number of newly published articles and pagination to be out of sync?

藏色散人
藏色散人Original
2019-12-13 09:34:571881browse

How to deal with the cache in the Dreamweaver column that causes the number of newly published articles and pagination to be out of sync?

How to deal with the cache in the Dreamweaver column that causes the number of newly published articles and paging to be out of sync?

Just now Building a website requires filling in a lot of data. I found that the newly added data was not synchronized to the column article pagination in real time.

Recommended study:梦Weavercms

As shown in the picture:

How to deal with the cache in the Dreamweaver column that causes the number of newly published articles and pagination to be out of sync?

Picture 2:

How to deal with the cache in the Dreamweaver column that causes the number of newly published articles and pagination to be out of sync?

The pagination is not correct. After checking, it will take 1 hour to automatically process due to caching issues. It can be restored to normal, or you can manually clear all the files in the data cache using ftp. If you don’t want to clean it manually every time, you can change the file so that it does not need to be cached.

Use an editing tool to open /dede/ content_list.php Find about 104 lines, change

if (empty($arr))

to

if (true || empty($arr))

and save it. .

The above is the detailed content of How to deal with the cache in the Dreamweaver column that causes the number of newly published articles and pagination to be out of sync?. 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