Why Your WordPress Feels Slow (And How Cloudflare Helps)
A while ago I was helping a friend with a small WordPress shop.
The content was simple, the hosting was okay, but the site still felt like dial‑up internet.
Click a product, wait.
Open the blog, wait again.
We checked plugins, themes, even the database.
The real problem? The server was doing too much work for every single visit.
That’s where Cloudflare Cache stepped in and took a big chunk of the load away from the server.
If you:
- Run a WordPress site that feels heavy or slow
- Use Cloudflare (or plan to)
- Are worried that caching might break your admin or cart
…this guide is for you.
We’ll walk through what Cloudflare Cache actually does, and how to set basic Cache Rules in a way that’s safe for normal WordPress and WooCommerce sites.
What Cloudflare Cache Actually Does (In Plain Language)
Think of Cloudflare Cache like taking a photo of your page.
Normally, when someone opens your WordPress site, your hosting server has to:
- Run PHP
- Talk to the database
- Build the HTML page
- Send it to the visitor
Do that for every visit, add a few more people hitting the site at the same time, and your server starts to sweat.
That’s when things get slow, or even crash under load.
Cloudflare sits in front of your site as a gatekeeper.
When a page is built once, Cloudflare can save a “photo” (a cached copy) on its own servers around the world.
Next visitor?
Instead of waking up your hosting server every time, Cloudflare just hands out that cached copy.
Your server rests, your bandwidth is lower, and the visitor gets the page much faster.
The trick is:
- Cache the right pages (like public posts and product listings)
- Avoid caching sensitive or changing areas (like the admin dashboard or shopping cart)
That’s where Cloudflare Cache Rules come in.
Why Cloudflare Cache Matters for WordPress Speed
On a basic WordPress install, every page request touches PHP and the database.
Even with a decent host, this adds up when:
- You get traffic spikes
- You run heavy themes
- You load multiple plugins
Cloudflare Cache:
- Reduces the number of full page builds your server has to do
- Serves repeat visitors from Cloudflare’s global network
- Helps your site stay responsive under moderate traffic
For small business sites and blogs, this alone can make the site feel much more responsive.
And if you set the rules safely, you don’t risk breaking logins, carts, or the WordPress dashboard.
Safety First: What You Should *Not* Cache
Before creating rules, it’s important to be clear what you should protect from caching.
If you cache the wrong area, visitors might see outdated data, or you might even break logins.
You don’t want Cloudflare to cache:
- wp-admin (WordPress dashboard)
- Login pages
- Cart / checkout / account pages (for shops)
The idea is simple:
- Public content: OK to cache
- Logged‑in content, sensitive pages: Don’t cache
When we create Cache Rules, we’ll aim to cache normal frontend pages and skip the “danger zones” like admin and cart.
Also, do this on a low‑traffic time if possible.
Changing cache behaviour can confuse active visitors for a moment while rules start working.
Step‑by‑Step: Open Cloudflare Cache Rules for Your Site
Let’s walk through the process in simple steps.
We’ll follow the general flow:
- Go to the Cache Rules menu
- Fill in basic rule info
- Add an expression (the condition: which URLs the rule applies to)
- Set the cache behaviour (what Cloudflare should do)
1. Go to the Cache Rules Menu
Once you’re logged into your Cloudflare dashboard and have selected your domain:
- Look for a Cache or Caching section in the left menu
- Inside that, find Cache Rules
This is where you define custom behaviour for different parts of your site.
You can have multiple rules, each with different conditions.
2. Fill Basic Rule Information
When you add a new Cache Rule, Cloudflare usually asks for some basic info, like:
- Rule name – for example:
WordPress Public Pages Cache - Status – you want it enabled once you’re ready, but you can create and save it disabled first if you prefer to test later
Use clear names.
Six months from now, you’ll thank your past self when you can see at a glance what each rule is for.
3. Define the Expression (Which URLs to Match)
Now you set the when part: when should Cloudflare apply this rule?
This is often called an Expression Rule.
Because we want to speed up public content while keeping admin and cart safe, the idea is:
- Include your main pages (e.g. yourdomain.com/*)
- Exclude sensitive paths like
/wp-admin/or/cart/
In Cloudflare’s rule builder, this usually looks like:
- Select a field like URI path
- Set conditions to match the URLs you want
You’d normally:
- Use a broad match for normal pages
- Add separate rules or exceptions for admin and cart pages
Even without exact syntax, remember this principle: your expression should cover only the parts of the site you’re comfortable caching.
Public posts, pages, category archives — those are the usual targets.
4. Choose the Cache Action (Cache Eligibility)
Now for the “what to do” part.
Here you tell Cloudflare if a request that matches your expression should be cached or not.
Common actions in a Cache Rule are along the lines of:
- Cache (or make this resource cacheable)
- Bypass cache (or do not cache)
For a WordPress site, a safe pattern is:
- Public frontend: allow caching
- Admin or special functional pages: bypass caching
So you might:
- Create a rule that says: for regular pages, Cloudflare is allowed to cache
- Create another rule that says: for URLs like
/wp-admin/, logins, or cart paths, Cloudflare must bypass cache
The exact labels in your Cloudflare dashboard might differ slightly, but the logic is the same: your actions define whether Cloudflare serves a stored “photo” of your page or always goes back to your origin server.
When in doubt, it’s safer to under‑cache (bypass more) than to over‑cache sensitive pages.
Keeping Cloudflare Cache Rules Safe for WordPress
Cloudflare isn’t magic, and it won’t automatically understand your site structure.
That’s why we’re careful with rules.
Some good habits:
- Avoid one giant catch‑all cache rule for everything
- Check your admin after changes; make sure you can still log in and see fresh content
- If you run a store, pay special attention to cart and checkout pages
You want rules that:
- Clearly target public content
- Keep dynamic or personal content uncached
Also, keep your hosting‑side backups in good shape.
Cache rules don’t touch your files or database, but when tuning performance, it’s always nice to know you can roll back anything else you change along the way.
If you have a staging site, it’s even better to test new caching behaviour there first, especially if your live site is busy.
Verify That Your Cache Rules Are Working
Once you’ve set your rules, don’t just close the tab and hope for the best.
You want to confirm that everything behaves as expected.
Here’s a simple check routine you can follow:
- Open your homepage in a browser
- Note how fast it loads on first visit
- Refresh the same page
- If Cloudflare can cache it, the second load often feels quicker
- Open a regular post or page
- Make sure layout and content look normal
- Log into your WordPress dashboard
- Confirm you can log in
- Make a minor edit to a post, then view it on the frontend and ensure it updates after a refresh
- If you have e‑commerce pages, walk through:
- Add a product to cart
- Go to cart page
- Move to checkout page
What you’re checking for:
- Public pages: feel snappier and still show the right content
- Admin and cart: not stuck, always showing fresh data
If something seems stuck (like a page not updating), it might be cached too aggressively.
In that case, you can:
- Temporarily disable the rule
- Narrow the expression so it doesn’t apply to that URL
- Clear Cloudflare cache for the affected URL
Take it step by step, change one thing at a time, and retest.
Wrap‑Up: Cloudflare Cache Without the Drama
You don’t need to be a full‑time sysadmin to get real benefits from Cloudflare Cache.
With a couple of carefully built Cache Rules, you can:
- Reduce workload on your server
- Make public pages load faster
- Keep important areas like wp‑admin and cart safe from caching issues
Remember the flow:
- Open Cache Rules in Cloudflare
- Add a rule with a clear name
- Define expression(s) that match only the pages you want
- Set the cache action so public pages can be cached, sensitive pages are bypassed
- Test the frontend, the dashboard, and (if you have it) the cart/checkout
It’s all about balancing speed and safety.
A bit of time setting rules now can save you a lot of headaches later.
If this worked for you, keep CrushEdge handy for the next fix.
No Comments