Solution to wordpress not refreshing: 1. Delete cookies for all periods, and then check whether the homepage refreshes normally; 2. Check whether cookies are filtered, and then find the relevant cookies and fill in the corresponding cookie filters. Just click the options bar.

#The operating environment of this tutorial: Windows 10 system, WordPress version 5.4.2, Dell G3 computer.
What should I do if wordpress doesn’t refresh?
One possibility that the WordPress homepage cache is not refreshed: problems caused by cookie filtering
If some caching software is used, You may encounter the problem that the WordPress homepage cache does not refresh. There is a situation where the home page does not change after publishing an article or logging in.
This situation is often caused by cookies.
For example, if you use the Batcache plug-in, this possibility will easily arise.
Batcache will disable caching when it detects some cookie values. The judgment code in advanced-cache.php is as follows:
// Never batcache when cookies indicate a cache-exempt visitor.
if ( is_array( $_COOKIE) && ! empty( $_COOKIE ) ){
foreach ( array_keys( $_COOKIE ) as $batcache->cookie ){
if ( $batcache->cookie != 'wordpress_test_cookie' &&
( substr( $batcache->cookie, 0, 2 ) == 'wp' || substr( $batcache->cookie, 0, 9 ) == 'wordpress' || substr( $batcache->cookie, 0, 14 ) == 'comment_author' ) ){
batcache_stats( 'batcache', 'cookie_skip' );
return;
}
}
}This means that Batcache finds that if the cookie in the request is wp, Disable caching at the beginning of wordpress or comment_author so that functions such as background management and user comments can work properly.
If there is a conflict with the plug-in, for example, if the plug-in generates a wpxxyy cookie, the cookie starting with "wp" will be filtered by the Batcache plug-in, and the Batcache full page cache will be invalid. You need to cancel it and modify the cookie. Filter range.
// Never batcache when cookies indicate a cache-exempt visitor.
if ( is_array( $_COOKIE) && ! empty( $_COOKIE ) ){
foreach ( array_keys( $_COOKIE ) as $batcache->cookie ){
if ( $batcache->cookie != 'wordpress_test_cookie' && $batcache->cookie != 'wpmp_switcher' && substr( $batcache->cookie, 0, 12 ) != 'wp-settings-' &&
( substr( $batcache->cookie, 0, 2 ) == 'wp' || substr( $batcache->cookie, 0, 9 ) == 'wordpress' || substr( $batcache->cookie, 0, 14 ) == 'comment_author' ) ){
batcache_stats( 'batcache', 'cookie_skip' );
return;
}
}
}
Similarly, take the chrome browser as an example, find all the cookies of this site through F12/Website Settings/Privacy Settings/Cookies/View Cookies, and check them Whether related cookies are filtered.
Processing:
1. Delete the cookies for all periods and check whether the home page is refreshed normally
2. If the home page is still the same after deleting the cookies, If it cannot be refreshed normally, check whether the cookies are filtered
Caching software such as Supercache, WT3, Fastest cache, etc. all have the option to exclude cookie filtering, and this is the reason.
After finding the relevant cookies, just fill in the corresponding cookie filtering option column.
Of course, this is just a possibility that the WordPress homepage cache does not refresh, but it is very common.
Recommended learning: "WordPress Tutorial"
The above is the detailed content of What to do if wordpress doesn't refresh. For more information, please follow other related articles on the PHP Chinese website!
Top 9 WordPress Themes To Use in 2025Apr 17, 2025 am 08:26 AMIn 2025, choosing the perfect WordPress theme is no longer a priority. The real challenge is choosing a topic that is flexible enough to meet the needs of the current project and adapt to the evolution of future needs. The good news is that you don't have to start from scratch. Whether you are building a website for your customers or expanding your own digital products, the following topics strike the ideal balance between design freedom, technical performance, and long-term reliability. These topics are built by developers who understand the important factors: regular updates, clean code, mobile-first responsive design, and compatibility with tools you already use, such as Elementor, Gutenberg, and WooCommerce. In this review, we have narrowed the scope to 9
How To Begin A WordPress Blog: A Step-By-Step Guide For BeginnersApr 17, 2025 am 08:25 AMBlogs are the ideal platform for people to express their opinions, opinions and opinions online. Many newbies are eager to build their own website but are hesitant to worry about technical barriers or cost issues. However, as the platform continues to evolve to meet the capabilities and needs of beginners, it is now starting to become easier than ever. This article will guide you step by step how to build a WordPress blog, from theme selection to using plugins to improve security and performance, helping you create your own website easily. Choose a blog topic and direction Before purchasing a domain name or registering a host, it is best to identify the topics you plan to cover. Personal websites can revolve around travel, cooking, product reviews, music or any hobby that sparks your interests. Focusing on areas you are truly interested in can encourage continuous writing
Can I learn WordPress in 3 days?Apr 09, 2025 am 12:16 AMCan learn WordPress within three days. 1. Master basic knowledge, such as themes, plug-ins, etc. 2. Understand the core functions, including installation and working principles. 3. Learn basic and advanced usage through examples. 4. Understand debugging techniques and performance optimization suggestions.
Is WordPress a CMS?Apr 08, 2025 am 12:02 AMWordPress is a Content Management System (CMS). It provides content management, user management, themes and plug-in capabilities to support the creation and management of website content. Its working principle includes database management, template systems and plug-in architecture, suitable for a variety of needs from blogs to corporate websites.
What is the WordPress good for?Apr 07, 2025 am 12:06 AMWordPressisgoodforvirtuallyanywebprojectduetoitsversatilityasaCMS.Itexcelsin:1)user-friendliness,allowingeasywebsitesetup;2)flexibilityandcustomizationwithnumerousthemesandplugins;3)SEOoptimization;and4)strongcommunitysupport,thoughusersmustmanageper
Should I use Wix or WordPress?Apr 06, 2025 am 12:11 AMWix is suitable for users who have no programming experience, and WordPress is suitable for users who want more control and expansion capabilities. 1) Wix provides drag-and-drop editors and rich templates, making it easy to quickly build a website. 2) As an open source CMS, WordPress has a huge community and plug-in ecosystem, supporting in-depth customization and expansion.
How much does WordPress cost?Apr 05, 2025 am 12:13 AMWordPress itself is free, but it costs extra to use: 1. WordPress.com offers a package ranging from free to paid, with prices ranging from a few dollars per month to dozens of dollars; 2. WordPress.org requires purchasing a domain name (10-20 US dollars per year) and hosting services (5-50 US dollars per month); 3. Most plug-ins and themes are free, and the paid price ranges from tens to hundreds of dollars; by choosing the right hosting service, using plug-ins and themes reasonably, and regularly maintaining and optimizing, the cost of WordPress can be effectively controlled and optimized.
Is WordPress still free?Apr 04, 2025 am 12:06 AMThe core version of WordPress is free, but other fees may be incurred during use. 1. Domain names and hosting services require payment. 2. Advanced themes and plug-ins may be charged. 3. Professional services and advanced features may be charged.


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

Notepad++7.3.1
Easy-to-use and free code editor

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Zend Studio 13.0.1
Powerful PHP integrated development environment

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment






