WordPress Cache Settings | WordPress Disable Cache [2023] | Nexcess (2024)

Notice anything different?

We've enhanced the appearance of our portal and we're working on updating screenshots. Things might look different, but the functionality remains the same.

Caching can be an excellent solution for improving your WordPress website performance. Having requested data cached means it can be served to the website visitors quickly while bypassing the process of dynamic content generation. This streamlined serving is even more helpful for data that is requested more frequently.

In this article, we will review the WordPress cache settings available to Nexcess users and learn how we can exclude certain data pages and data from being cached to ensure caching will not cause issues with your website functionality.

Fully Managed WordPress Hosting

Do You Need Caching for a Website?

Yes, caching for a website improves the visitor overall experience considerably, given that page loading times are a primary pain point for the majority of visitors. Cached data is considered temporary storage of web page elements like images, videos, and text that will be faster to load if caching for your website has been enabled.

How Do You Disable Caching in WordPress?

Disabling caching in WordPress is done by modified the wp-config.php file in your WordPress folder, be taking these steps:

1. Find and edit the wp-config.php file for your site.
2. Locate this section in wp-config.php file:

define('WP_CACHE',true);

3. Change value of true to false.
4. Save your changes.

Nexcess: WordPress Cache Settings & Solutions Overview

Nexcess users can leverage built-in caching solutions optimized for the Content Management System (CMS) in use. That includes both page and persistent object cache that can help improve website load time if applied correctly.

Nexcess provides full-page caching for managed WordPress and WooCommerce sites by having a fully-optimized solution based on the KeyDNS’s Cache Enabler plugin’s functionality, which is automatically enabled. In addition, we maintain an improved version of the plugin that we created to serve better the needs of our WordPress, WooCommerce, and StoreBuilder platform users. Page caching means static HTML files of cached pages are stored on the disk in a specific WordPress cache folder.

We are using Redis as a persistent object cache solution for WordPress that helps reuse cached objects without sending queries to the WordPress database. Although WordPress does provide object caching, it is non-persistent. Redis stores data persistently for the saved objects to be reused between page loads.

Redis object caching is enabled on our managed WordPress and WooCommerce solution by having the Redis Object Cache plugin installed and activated by default.

Our customers, however, can use other page caching solutions for WordPress like WP-Rocket, W3 Total Cache, WP Super Cache, and similar. So if there is another WordPress caching plugin is used, its functionality will be sufficient, and our built-in page caching solution will not be activated. But if you switch to Nexcess Page Cache, you can enable it from your WordPress dashboard.

Excluding Data From Being Cached: When & Why

Each WordPress caching solution provided by Nexcess is fully-optimized for WordPress and takes all aspects of the content management system into account, so you will rarely need to adjust any WordPress cache settings yourself. However, there are cases when you need to exclude certain pages and specific data from being cached. Let’s see why we would want to do that sometimes.

WordPress is used to build dynamic, database-driven websites, which means dynamic content can contribute to a considerable part of your site. Data needs to be retrieved from the database and merged with template files to generate a static HTML page that will be sent to the visitor. This process lies at the heart of the content rendering process.

Caching solutions help you save the generated content, including the whole web pages or the results of the queries sent to the database. This process works well until there is a need to regenerate a specific page each time it is requested because it contains personalized information that needs to be tailored to each visitor. JavaScript can be used to handle some dynamic elements which would make it work perfectly with WordPress cache.

However, all sites are unique, and it is not uncommon for caching to interrupt the correct work of a WordPress website, which needs an individual approach to adjusting WordPress cache settings. So excluding certain pages and data from being cached can help avoid any issues with the website functionality that may arise due to caching.

WordPress Cache Settings & Solutions Already Excluded from Caching

All modern caching solutions for WordPress are designed to work efficiently with websites where dynamic features use PHP to generate the output. There are specific rules in place that detect certain changes to know when to flush cache and data exclusions that are meant to work in most situations.

For example, when running an ecommerce site, dynamic pages such as the account area, shopping cart, and checkout are already excluded from being cached by most WordPress cache solutions. It is done as some plugins and widgets still employ PHP instead of having content updated dynamically using Ajax.

WordPress Cache Settings: Excluding Pages and Data

Certain pages and data can be easily excluded from being cached in the WordPress cache settings of the caching solutions used by Nexcess. Let’s dive into the process to understand how we can do it to avoid any issues that can potentially be caused by caching. First we will review configuring exclusions in the Nexcess Page Cache, WP Rocket, and Redis Object Cache.

Data to be Excluded: Finding the IDs

Before we dive into excluding data from being cached, we need to understand what we can exclude and how. Most WordPress caching plugins allow you to exclude the following data:

  • Page by ID. You can find a specific page ID by opening it for editing from WordPress admin and checking the post ID shown in the browser’s address bar.
  • A group of pages by URLs. You will need to specify the paths one by one or using regex.
  • Query strings. Query string parameters will also need to be specified using regex.
  • Cookies by ID or full name. You can find the IDs by opening the Application tab from the dev tools in your web browser and checking the Storage section.
  • Specific object groups. You can exclude partilcur groups of objects from being cached by using a WordPressconstant.

Nexcess Page Cache

Nexcess Page Cache settings can be adjusted from Nexcess > Page Cache in the WordPress Admin area. You can adjust the cache behavior, including how long a page needs to be stored in cache and what events can trigger pages to be generated again rather than retrieved from the WordPress cache folder. For example, you can choose to create an additional cached version for mobile devices.

WordPress Cache Settings | WordPress Disable Cache [2023] | Nexcess (1)

WordPress Cache Settings | WordPress Disable Cache [2023] | Nexcess (2)

The Cache Exclusions menu allows you to exclude specific data by page ID, website paths, query string parameters, or cookies. Nexcess Page Cache already has some data excluded by default. The default caching configuration, including the exclusions specified by default, will be sufficient for the correct work of a WordPress website in most cases.

Here we have excluded two pages by their IDs. You will need to use regex to add exclusions for everything else, including cookies and query string parameters.

WordPress Cache Settings | WordPress Disable Cache [2023] | Nexcess (3)

WordPress Cache Settings | WordPress Disable Cache [2023] | Nexcess (4)

WP Rocket Caching Plugin

WP Rocket plugin allows you to exclude cookies, pages, and groups of pages by IDs and URLs.

You can configure the exclusions from the Advanced Rules settings tab of the plugin’s interface.

Cache Query Strings

Although the WP Rocket plugin does not cache pages with query strings by default, there are a few exceptions. There is a group of ignored query string parameters that WP Rocket has by default.

WordPress Cache Settings | WordPress Disable Cache [2023] | Nexcess (5)

WordPress Cache Settings | WordPress Disable Cache [2023] | Nexcess (6)

You can customize query string caching by removing some of the ignored parameters from the list to prevent pages from being cached. You can also configure some pages with query strings to be cached by WP Rocket by adding specific parameters to the list under Cache Query String(s) in the Advanced Rules settings tab.

You can exclude pages and groups of pages by URL by listing them one by one or using regex to specify a rule.

Never Cache URLs

WordPress Cache Settings | WordPress Disable Cache [2023] | Nexcess (7)

WordPress Cache Settings | WordPress Disable Cache [2023] | Nexcess (8)

Never Cache Cookies

The Never Cache Cookies option allows you to exclude certain cookies by ID or name.

WordPress Cache Settings | WordPress Disable Cache [2023] | Nexcess (9)

WordPress Cache Settings | WordPress Disable Cache [2023] | Nexcess (10)

Redis Object Cache

Redis object cache allows WordPress users to exclude certain groups from being cached, which would cause the keys of the ignored groups never to be stored in Redis. It can be done by using the WP_REDIS_IGNORED_GROUPS WordPress constant in the wp-config.php file.

define( 'WP_REDIS_IGNORED_GROUPS', [ 'options', 'user_meta' ]);

There can be cases when the Redis cache could interrupt the correct work of a plugin. In that case, you can contact the plugin support or review the documentation to find the specific object groups the plugin uses to exclude them from being cached. But that might not be the correct approach, so it is crucial to have a professional look at the issue to determine what caused it.

Most of the time, manipulating object cache performance on a particular site requires the involvement of a strong WordPress developer familiar with your WordPress site structure.

How Do You Disable Caching in WordPress?

You can disable caching on your WordPress site by changing the value of the WP_CACHE constant in the wp-config.php file or by making changes to the caching plugins’ configuration.

Find and open the wp-config.php file for editing. You can do it by connecting via SSH or using the file manager interface. Locate the WP_CACHE constant in the wp-config.php file and change the value of it from true to false. Save the file to have WordPress caching disabled.

define('WP_CACHE',true); > define('WP_CACHE', false);


Generally, if you set the value of the WP_CACHE constant to false, most caching drop-ins will not be loaded. You may still need to rename or remove the advanced-cache.php and object-cache.php files in the wp-content directory.

You can also disable caching on your site from the WordPress Dashboard from your caching plugins’ configuration menus. This is an easier way that does not require you to change any files on the server manually. Moreover, caching will not be re-enabled automatically unless you revert the changes you made from the plugins' configuration.

Open your WordPress Dashboard and then navigate to Settings > Redis to disable the Redis Object Cache. You can disable Nexcess Page Cache or any other page caching solution by setting cache status to off in the plugin settings.

Bottom Line

Caching can be a valuable option for speeding up your WordPress site, however, it will not be effective in all situations. Sometimes WordPress cache settings need to be adjusted to meet the specific needs of your website. Modern WordPress cache solutions allow you to customize their behavior, including having certain pages and data excluded from being cached.

Most of the time, the default configuration meets the requirements of most WordPress sites as it is specifically optimized for the content management system. However, there can be cases when certain areas of your website can work incorrectly due to caching. In that case, excluding data from being cached can be reasonable unless there is another solution.

Before you configure exclusions in a caching solution of any type, we strongly recommend you consult with a qualified WordPress developer.

Consider Managed Hosting with Nexcess

Not a Nexcess customer yet?

Our fully managed hosting plans come prepackaged with the best solutions built in. Plus, our WordPress hosting plans are specifically optimized for the platform.

Check out our WordPress hosting plans to get started today.

Browse Managed WordPress Plans

Other Useful WordPress Links for Developers & Admins

Related Articles

  • Scope of Support
  • Getting started with managed WordPress and WooCommerce hosting
  • Migrating to Nexcess with managed WordPress and managed WooCommerce hosting
  • Going live with your site in Managed WordPress and Managed WooCommerce hosting
  • WordPress Cleanup 101: 9 Easy Ways To Clean Up and Optimize Your WordPress Site
  • How to configure the Nexcess CDN with WordPress and CDN Enabler
  • The Nexcess Plugin Performance Monitor
  • What is Scalable WordPress hosting?
  • Everything You Wanted to Know About Auto Scaling
WordPress Cache Settings | WordPress Disable Cache [2023] | Nexcess (2024)

FAQs

How do I disable the WordPress cache? ›

How Do You Disable Caching in WordPress?
  1. Find and edit the wp-config. php file for your site.
  2. Locate this section in wp-config. php file: define('WP_CACHE',true);
  3. Change value of true to false.
  4. Save your changes.
Jul 13, 2022

How often should I clear my WordPress cache? ›

Any time you update your theme or plugin on WordPress, it's recommended to clear your WordPress cache. Without a clear WordPress cache, the changes made in the update might not go into effect.

How do I resolve cache issues in WordPress? ›

However, if you experience problems and need to clear your cache, it's easy to do so. Just head to your WordPress dashboard and navigate to WP Engine in the sidebar. Then click on Purge All Caches under the General settings. It's that simple!

Is it safe to clear cache in WordPress? ›

Yes, it is safe to delete the WP content cache since it won't affect your website's core files or data. It simply removes the stored content to ensure your site displays the most current version.

How do I disable caching? ›

Disable Browser cache

Open Developer Tools (F12) --> Network --> Disable Cache (toggle). Tested in Chrome, Firefox and Brave.

How do I change cache settings in WordPress? ›

WordPress caching options
  1. Navigate to the Manage Websites page.
  2. Click the Manage button to open the Domain Settings page, which allows you to adjust various settings for your site. ...
  3. Click the Website tab.
  4. Scroll down to the WordPress section.
  5. To the right of Page Caching, enable the toggle.
Mar 12, 2024

Does WordPress automatically cache? ›

If your site has a plugin-enabled plan, you may run into a recommendation from a plugin to clear your WordPress.com site's cache as a troubleshooting step. They commonly recommend a caching plugin, but these plugins are incompatible with WordPress.com because we automatically provide server-side caching for your site.

How do I clear my cache automatically in WordPress? ›

Step 1: Log in to the WordPress admin panel. Step 2: Install and activate the plugin named WP Super Cache bY Automattic. Step 3: You can access the WP Super Cache dashboard by hovering on settings; there, you'll see WP Super Cache. Step 4: 'Delete Cache' button in the 'Delete Cached Pages.

What is the lifetime of WordPress cache? ›

The default value for Cache Lifespan is 10 hours. The default value is chosen to avoid any issues with WordPress nonces on your pages. See our related article. In some cases, you can set a longer Cache Lifespan because WP Rocket will automatically clear the cache when content is updated and in other cases.

How do I clear my WordPress cache without plugins? ›

Clearing cache without a WordPress plugin is possible and can be done manually. To do so, you need to delete the content of your website's wp-content/cache folder using an FTP client such as FileZilla or by accessing your server directly.

How do I check if cache is enabled in WordPress? ›

Go to Settings -> WP Super Cache. Look for the “Cache Tester” form on the easy settings page. Click “Test Cache” and the plugin will request the front page of the site twice, comparing a timestamp on each to make sure they match.

How do I manage WordPress cache? ›

Click the Websites tab from the side navigation menu to the left. Locate the website for which you wish to manage caching, and click the Speed tab. Here, you can manage caching settings, clear cache, or add Cloudflare.

Which cache is best for WordPress? ›

  1. WP Rocket. 🥇Best Cache Plugin Overall. ...
  2. WP-Optimize. 🥈Best Free Caching Plugin. ...
  3. W3 Total Cache. 🥉Best Caching Plugin For Advanced Users. ...
  4. LiteSpeed Cache. ...
  5. WP Super Cache. ...
  6. WP Fastest Cache. ...
  7. Hummingbird. ...
  8. Autoptimize.

How do I stop WordPress from caching? ›

Disable WP_CACHE for WordPress
  1. Edit the wp-config.php for your website. ( cPanel / Plesk / VPS)
  2. Locate this section in wp-config. php: define('WP_CACHE',true);
  3. Change true to false.
  4. Save your changes.

Does clearing cache delete saved websites? ›

Clearing out a web browser's cache does not damage any information stored in a browser, such as bookmarks or your homepage. Instead, it simply makes the web browser think that you have not visited a webpage before.

How do I clear my WordPress site or server cache? ›

To manually clear your WordPress site's cache:
  1. Go to WP Fastest Cache and select the Delete Cache tab.
  2. From there, press the Delete Cache button.
  3. Meanwhile, choose the Delete Cache and Minified CSS/JS button if you have just edited CSS or JavaScript files.
Jul 22, 2024

How do I turn off the WP engine cache? ›

WordPress Admin
  1. Log in to your website's wp-admin dashboard.
  2. Click on the WP Engine plugin tab in the main menu.
  3. Select Caching.
  4. Click Clear All Caches.
Sep 3, 2024

Top Articles
Common Mistakes Balancing a Checking Account | UnitedOne
11 of the Best Websites for Photography Inspiration | Photographypla.net
Ymca Sammamish Class Schedule
O'reilly's In Monroe Georgia
Max 80 Orl
Blue Ridge Now Mugshots Hendersonville Nc
Sitcoms Online Message Board
Craigslist Chautauqua Ny
Craigslist Apartments In Philly
Nene25 Sports
Arboristsite Forum Chainsaw
Craigslist West Valley
H12 Weidian
Race Karts For Sale Near Me
Caledonia - a simple love song to Scotland
Ge-Tracker Bond
Mc Donald's Bruck - Fast-Food-Restaurant
Pocono Recird Obits
All Obituaries | Gateway-Forest Lawn Funeral Home | Lake City FL funeral home and cremation Lake City FL funeral home and cremation
Red8 Data Entry Job
Hood County Buy Sell And Trade
Bill Remini Obituary
D2L Brightspace Clc
Paris Immobilier - craigslist
Xpanas Indo
Times Narcos Lied To You About What Really Happened - Grunge
Unity Webgl Car Tag
WPoS's Content - Page 34
TJ Maxx‘s Top 12 Competitors: An Expert Analysis - Marketing Scoop
Rays Salary Cap
Miss America Voy Board
Rocksteady Steakhouse Menu
EST to IST Converter - Time Zone Tool
Tendermeetup Login
Studio 22 Nashville Review
Hingham Police Scanner Wicked Local
Ursula Creed Datasheet
8 Ball Pool Unblocked Cool Math Games
Culver's of Whitewater, WI - W Main St
Metro Pcs Forest City Iowa
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Take Me To The Closest Ups
Myapps Tesla Ultipro Sign In
Minute Clinic Mooresville Nc
R Detroit Lions
Game Akin To Bingo Nyt
Craigslist Yard Sales In Murrells Inlet
Land of Samurai: One Piece’s Wano Kuni Arc Explained
Koniec veľkorysých plánov. Prestížna LEAF Academy mení adresu, masívny kampus nepostaví
Www.card-Data.com/Comerica Prepaid Balance
Selly Medaline
Latest Posts
Article information

Author: Chrissy Homenick

Last Updated:

Views: 6309

Rating: 4.3 / 5 (74 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Chrissy Homenick

Birthday: 2001-10-22

Address: 611 Kuhn Oval, Feltonbury, NY 02783-3818

Phone: +96619177651654

Job: Mining Representative

Hobby: amateur radio, Sculling, Knife making, Gardening, Watching movies, Gunsmithing, Video gaming

Introduction: My name is Chrissy Homenick, I am a tender, funny, determined, tender, glorious, fancy, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.