Menu

How to enable WP_CACHE

Updated on May 1st, 2020

Warning

WP_CACHE offers some great additional features for customers who are using a persistent caching plugin on top of Flywheel’s stellar server-level cache. WP_CACHE doesn’t do anything on its own, so it’s best to leave WP_CACHE disabled unless your site has a specific need for it.

For users who want to use a caching plugin on top of Flywheel like WP-Rocket, that plugin will need to create something called a persistent cache. This plugin will effectively dictate that the cache should never get rebuilt unless this plugin explicitly tells it to.

Warning

Important note: If you’re using WP Rocket, make sure “Activate Preloading” is turned off (unchecked) in WP Rocket settings. Preloading in WP Rocket will continuously try to purge and refill cache, which results in over-consumption of resources and ironically leads to performance issues.

In order to hand over control to the persistent caching plugin, you’ll need to enable a feature called WP_CACHE.

To enable this in the Flywheel app, navigate to the Advanced tab for your site and toggle WP_CACHE so the graphic is green and reads “On”.

 

Note

A note on Flywheel’s default caching setup:

On Flywheel, our caching system helps make your site run blazingly fast while still allowing you to make ongoing updates to your site’s content and appearance that show up in real time. To strike this balance, the kind of caching we employ is non-persistent.

In a non-persistent cache, once all the pieces of a requested page are assembled after being visited and then are converted into a static snapshot. Each cached snapshot resides in our server’s memory for a set duration of time. This means that that short-term visits can simply pull up this ready-made page instead of needing to re-assemble every component of the page from scratch each time.

In this setup, after some time has passed, our system will clear this cache and then rebuild itself when a new visitor loads the page. Thus, we wind up with regularly updated content that loads quickly when you have more than one visitor to a particular page in a short window of time.

 

Was this article helpful?

Getting Started

New to Flywheel? Start here, we've got all the information you'll need to get started and launch your first site!

View all

Account Management

Learn all about managing your Flywheel user account, Teams and integrations.

View all

Billing

Everything about billing, invoices and payments can be found here.

View all

Features

Flywheel hosting plans include a ton of great features. Learn about how to get a free SSL certificate, set up a staging site, and more!

View all

Platform Info

All the server and setting info you'll need to help you get the most out of your Flywheel hosting plan!

View all

Site Management

Tips and tricks for managing your sites on Flywheel, including going live, troubleshooting issues and migrating or cloning sites.

View all

Flywheel help

Help is just a click away! Log into the Flywheel dashboard to instantly chat with an expert, open a ticket, or follow along with in-depth documentation. We happily offer support 24 hours a day, 7 days a week, 365 days a year!

Log in

Try Flywheel today

Launch your next WordPress site in minutes.

 Free migrations  24/7/365 support  14‑day demo sites