Skip to content

Advanced Breeze Settings on Cloudways: Minify, Lazy Load, Database and Heartbeat (2026 Guide)

On this page

Last updated: · By

Short answer: the advanced Breeze settings on Cloudways live in your WordPress dashboard under Settings > Breeze, across the File Optimization tab (minification, JavaScript delay, HTML Caching), Preload (fonts), Advanced Options (exclusions, query strings and API), Heartbeat API, Database Options, Varnish and Tools. Lazy Load sits in Basic Options. The rule I follow: change one setting at a time, purge the cache, and test the site before moving to the next.

⏱ Time needed: 30–60 minutes for all settings · Difficulty: intermediate · Last checked against the official documentation: 6 Nov 2026

Basic vs. advanced Breeze settings: what is the difference?

This guide picks up where the basic Breeze guide stops. There we turned on the cache, picked a One-Click Optimization preset and set up basic exclusions. Here we go through all the remaining tabs.

The key difference: the basic settings store a copy of the page and serve it fast. The advanced settings change the page’s code: they compress files, delay scripts and change how images load. That is what improves PageSpeed scores and Core Web Vitals, and it is also what can break a menu, a slider or a shopping cart. So the work here is slow and methodical: change, purge the cache, test.

Breeze is Cloudways’ free caching plugin for WordPress. It comes pre-installed and pre-configured with Varnish on Cloudways servers, and according to its product page it has more than 300,000 active installations.

What should you prepare before you start?

  • A backup of the application or, even better, a staging environment where you test every change. Cloudways explicitly recommends testing File Optimization changes on staging.
  • Export your current Breeze settings to a file (see “Import and export” below) so you can roll back with one click.
  • Administrator access in WordPress. According to the documentation, only users who can manage WordPress options (by default, administrators) can open the Breeze settings. Editors can only click Purge All Cache in the top bar.
  • A baseline measurement: run PageSpeed Insights on your homepage and one inner page, and save the results.
  • Test in a private (incognito) window while logged out. A logged-in user sometimes sees a different version.

In what order should you work?

If you are not sure where to start, this order works on most sites, from safest to riskiest:

  1. Varnish: make sure Auto Purge Varnish is on.
  2. Lazy Load: enable lazy loading for images.
  3. Minify HTML and CSS: enable and test.
  4. Minify JS: enable, then test forms, menus and the cart.
  5. Delay JavaScript: enable one of the two options and exclude critical scripts.
  6. Heartbeat: lower the frequency.
  7. Database: clean it, after a backup.

Combine JS and Include Inline JS stay at the end of the list, and most of the time you do not need them at all (explained below).

File Optimization: minification and JavaScript

This tab has the biggest effect on your scores, and also the biggest risk.

Minify HTML, CSS and JS

Minification removes spaces, line breaks and comments from code. The file works exactly the same, it is just smaller. Breeze has a separate toggle for HTML, CSS and JS.

  1. Under Settings > Breeze > File Optimization, turn on the toggle you want.
  2. Click Save Changes and purge the cache.
  3. Check the page source: minified CSS and JS files load from a path containing /cache/breeze-minification/.

Minification is usually safe. The exception is themes or plugins with inline scripts that depend on an exact format. If something breaks after Minify JS, exclude the problem file (see Exclude JS) instead of turning the whole option off.

Automatic font-display: swap

While a site’s font is still loading, the browser may leave the text invisible. The font-display: swap rule tells it to show a fallback font first and swap when the custom font arrives. Breeze adds the rule automatically, but only under two conditions: CSS Minification is on, and the theme or the font source does not already set font-display. If the rule does not show up, check both conditions and purge the cache.

Delay JavaScript: two options, only one at a time

Delaying JavaScript holds non-critical scripts back until the visitor does something: scrolls, clicks or moves the mouse. The first load is faster, which improves Core Web Vitals.

OptionWhat it doesWhen to choose it
Delay JS Inline ScriptsDelays only the inline scripts that match the keywords you enterWhen you know exactly which scripts are heavy (for example tracking code)
Delay All JavaScriptDelays all JavaScript in the same wayWhen you want the maximum improvement and are ready to test and exclude

Two important rules from the documentation: you can enable only one of the two options, and neither of them works together with Combine JS.

According to the documentation, the default list of delayed items includes gtag, googletagmanager and adsbygoogle, among others. Scripts that have to run immediately, such as a cookie consent banner or a chat widget, go into the List of scripts not to delay field. If something breaks, exclude that specific script first rather than turning the whole delay off. That way you keep the improvement.

JS Files With Deferred Loading

Defer is different from Delay. The browser downloads the file in parallel with reading the page and runs it as soon as the HTML is ready, without waiting for any visitor action. In the JS Files With Deferred Loading field you add the original URL of a JavaScript file, one URL per field, and Breeze adds the defer attribute to it. Note that URLs of minified files are not supported here.

Combine JS and Include Inline JS: usually not needed

Combine JS merges the minified JavaScript files into one file to save requests. According to Cloudways, this mainly helps sites running on HTTP/1.1. On HTTP/2 the benefit is small, because the protocol already handles many parallel requests well, and sometimes combining does more harm than good. It also does not work together with Delay JavaScript.

Include Inline JS adds the scripts embedded in the HTML to the combined file as well. This is riskier, because inline scripts often depend on execution order. My recommendation for most Cloudways sites: Delay instead of Combine.

Exclude JS: leaving out a single file

The Exclude JS field takes a file out of minification and combining without turning the option off for the rest of the site. Add a URL or a unique part of the file name, one per line. A line containing (.*) is treated as a pattern. Scripts from external domains are not minified anyway: Breeze only minifies the site’s own files, or files from a CDN that it rewrites back to the site.

How do you find the problem file? Open your browser’s developer tools (F12), go to the Console tab and load the page. An error in red will show the file name.

HTML Caching and Refresh Cached Page Parts

File Optimization also contains HTML Settings. According to the documentation (updated 29 Sep 2026) these options are marked as beta, so it is best to test them on staging first.

HTML Caching (or Cache Full Page HTML) stores a copy of the page’s HTML. Since Breeze 2.6.0 it is on by default. Do not confuse it with Cache System on the Basic tab, which is the main cache switch: both need to be on. And do not confuse it with HTML Minify, which only compresses code.

Refresh Cached Page Parts solves a specific problem: the cached page is fast, but one area shows stale information. The classic examples are a mini-cart showing 0 items, “Hello, guest” after login, or stock that does not update. When the option is on, the saved page loads first, and then Breeze fetches only the areas you listed from the server.

  1. Make sure HTML Caching is on.
  2. Turn on Refresh Cached Page Parts.
  3. In the Page Parts to Refresh field, enter one area per line. To find it, right-click the area on your site > Inspect. If it says id="site-header-cart", enter #site-header-cart. If it says class="mini-cart", enter .mini-cart.
  4. Save, purge the Breeze cache and Varnish, and test in a private window.

A few rules from the documentation: do not enter html, body or head, and do not target login, checkout or add-to-cart forms. If a whole page must always be fresh (cart, checkout), use Never Cache rather than a partial refresh. Show Loading Overlay adds a loading layer if the refresh looks jumpy, and Do Not Refresh on These Pages accepts exact URLs without wildcards. To verify, search the page source for breeze-dc-elem.

Lazy Load: images, video and iframes

Lazy Load postpones downloading images, videos and iframes until the visitor scrolls close to them. On a page with many images, such as a shop category page, it is one of the most noticeable improvements.

  1. Under Settings > Breeze > Basic Options, check Lazy Load Images.
  2. Click Save Changes and purge the cache. Without purging, the cached pages keep showing the old image tags.
MethodHow it worksAdvantageDisadvantage
JavaScriptReplaces the image URL with a placeholder, and the image loads when it is 300 pixels from the screen (fixed)Precise control, and you can skip an image with data-no-lazy="1"Without correct width and height in the tag, the page “jumps” (CLS)
NativeAdds loading="lazy", and the browser decides when to loadLightweight, images visible right away load right away, no jumpsYou cannot exclude a single image

You choose between them with Enable native browser lazy load. According to the documentation, Breeze has moved over time toward the native method and a lighter library. My recommendation: Native, unless you have a specific reason not to.

A few things worth knowing:

  • Video: only a <video> tag with src directly on it is lazy loaded. A video with a <source> tag inside is not lazy loaded, and this is the usual reason behind “I set it up and it doesn’t work”.
  • iframes: with the JavaScript method only iframes from a fixed list (YouTube, Vimeo, TikTok and others) are delayed. With the native method, every iframe is.
  • CSS background images and images added later by JavaScript are not affected.
  • There is no option to skip the first few images, change the loading distance, or turn off Lazy Load for a single page, other than adding that page to Never Cache.
  • Cross-Origin Safe Links, in the same area, is not part of Lazy Load. It adds rel="noopener noreferrer" to links that open in a new tab.

Preload: loading fonts early

A font that loads late makes text “flash” or shift. In the Preload tab you tell the browser to download important fonts early. This improves LCP and CLS.

There are two methods. Method 1: create a small CSS file containing only the @font-face declarations, upload it to the theme folder, and add its URL in the Preload tab. Method 2: paste the URL of the font file itself (for example a woff2 file), when the font is already loaded through the theme’s CSS. Check in the developer tools, on the Network tab, that the font loads before the main CSS file.

Two warnings from the documentation: never put the theme’s main CSS file here, because it slows things down instead of speeding them up. And if you have tried both methods, keep only one.

A tip of my own (not from the documentation): popular fonts such as Inter, Roboto or Open Sans often ship in several weights and several files. Preload only the woff2 file of the weight used in your headings and main text. Preloading ten files slows the page down.

Advanced Options: exclusions, query strings and API

This tab decides what gets cached, and lets you purge the cache from the outside.

Never Cache These URLs

Pages that must always be fresh go into the Never Cache These URLs field, one URL or pattern per line. For a group of pages, use a wildcard: https://yourdomain.com/shop/category-1(.*) excludes every URL that starts that way. Check the page source of the excluded page to confirm it no longer has the Breeze cache tag.

WooCommerce Cart, Checkout and My Account pages are excluded automatically. If one of them is still served from cache, it is usually because of a page builder or a non-standard page template, since Breeze recognizes them by the standard WooCommerce structure. Search pages are also excluded automatically, and you cannot enable caching for them.

On sites with non-Latin or accented characters in their URLs (Cyrillic, Arabic, Chinese or accented slugs), the URLs are usually percent-encoded. The documentation does not cover this case, so this is my own recommendation: if an exclusion for such a page does not take effect, try adding the URL in its encoded form, as it appears in the address bar after copying, and check the page source again.

Cache Query Strings

A query string is the part of the URL after the question mark. By default Breeze does not cache such URLs, because they usually show changing content. There are three groups:

GroupExamplesWhat Breeze does
Parameters that are ignoredutm_source, utm_campaign, fbclid, gclidServes the cached version of the URL without the parameter
Parameters that are always cachedlang, lp-variation-id, WordPress variables such as page_id and categoryCreates a separate copy for each value
Parameters you addfor example countryCreates a separate copy for each value, and ignores tracking parameters

This way a paid campaign with UTM tags still gets a fast page from the cache. Keep in mind that every parameter you add creates more copies and grows the cache folder.

Breeze API: purging the cache from outside

For automation, for example purging the cache after importing products from an external system, Breeze has a single API endpoint that clears all of the cache. You cannot clear a single URL through it.

  1. In Advanced Options, turn on Breeze API.
  2. Copy the Authentication Token (at least 16 characters; the refresh icon generates a new one) and click Save Changes.
  3. Send a POST request with the token in the Authorization header.
curl -X POST "https://yoursite.com/wp-json/breeze/v1/clear-all-cache" -H "Authorization: Bearer YOUR_TOKEN_HERE"

A successful request returns 200 and the message “Cache Cleared”. It clears exactly what Purge All Cache clears: page cache, minified files, Varnish, Cloudways Cloudflare (if enabled) and Object Cache. Error codes: 401 means a wrong or missing token, 429 means more than five failed attempts from the same IP in a minute, and 404 means the API is off or the URL is wrong.

What does the Heartbeat API do, and how do you reduce background requests?

The Heartbeat API is a WordPress mechanism that sends regular requests to the server through admin-ajax.php: autosave in the editor, dashboard notifications and login session management. When several editors work at once, or a wp-admin tab stays open all day, it adds up to real load.

In the Heartbeat API tab you control three areas separately: Heartbeat Frontend (the public site), Heartbeat Post Editor (the editor) and Heartbeat Backend (the dashboard). For each you choose 15, 30 or 60 seconds, or disabled.

AreaMy recommendationWhy
FrontendDisable, unless a plugin needs itRegular visitors do not need it
Post Editor60 secondsKeeps autosave working and cuts the load
Backend60 secondsNotifications arrive a little slower, with no harm done

The documentation lists 60 seconds as the recommended value for performance. Breeze does not remove Heartbeat, it only changes the frequency. After a change: Save Changes and Purge Cache.

How do you clean the database with Database Options?

Over time the database fills up with old post revisions, trashed items, spam comments and expired temporary data. The Database Options tab cleans this up.

First of all: back up. Cleaning the database cannot be undone. See how to back up and restore on Cloudways.

  • Clean All: check it and click Clean Now. This deletes all types of unnecessary items at once.
  • Selective cleaning: check only what you want and click Optimize. The options: Post revisions, trashed posts and pages, spam or trashed comments, Auto-drafts, Expired transients, and Pingbacks/Trackbacks.

Your posts, pages and media themselves are not affected. When should you not clean revisions? If your content team uses version comparison to restore text. In that case clean only trash, spam and transients.

Note that this tab does not handle the autoload table, a common cause of slowness on older sites. For that, see slow website or high CPU.

The Varnish tab

On Cloudways servers Varnish comes pre-configured with Breeze, so there is not much to change here. Auto Purge Varnish clears Varnish automatically when you publish or update a post or page, or when a comment is published. Cloudways recommends keeping it on at all times. The Varnish Server field is set automatically and you do not need to touch it. The Purge Varnish Cache button clears it manually, for example after a design change. For a full explanation of Varnish see the guide to Varnish on Cloudways, and for clearing every cache layer see how to clear the cache on Cloudways.

Tools: importing and exporting settings

If you manage several sites you know how long it takes to configure everything from scratch. The Tools tab saves you that.

  • Export: Download Settings saves all your Breeze settings to a .json file.
  • Import: Choose File, pick the .json file, and click Upload File and Import Settings. The settings apply immediately.

A practical use for agencies: once you have a good configuration on one site, export it and use it as a starting point for new sites. Just remember that exclusions (Never Cache, Exclude JS) are site-specific and travel with the file.

Can you run Breeze together with Autoptimize?

Some people prefer Autoptimize for file optimization. Cloudways states that the two plugins are compatible: Breeze handles page caching, and Autoptimize handles minifying and combining CSS, JavaScript and HTML.

The important condition: if you use Autoptimize, do not enable minification and the parallel advanced options in Breeze, because they do the same job. Two plugins minifying the same file is a recipe for errors. My recommendation: unless you have a specific reason, Breeze’s File Optimization is enough on most sites, and one plugin less is one point of failure less. For a comparison of caching plugins see which cache plugin suits Cloudways.

Why is the Breeze cache folder growing?

Breeze stores a separate copy for each URL. The folder grows fast when you have many pages, when Mobile Cache is on (an extra copy for mobile), when Cache Logged-in Users is on (a copy per role), and when you add Cache Query Strings. Minified files are saved in wp-content/cache/breeze-minification/ and are not deleted by age.

There is no maximum size setting. What controls the size is Purge Cache After in Basic Options, whose default is 1440 minutes (one day). A value of 0 turns the timer off, and the folder will grow until you purge it manually. If the disk fills up, see disk full or out of inodes.

Common mistakes and troubleshooting

The menu, slider or form stopped working: usually Delay or Minify JS. Open the browser Console, find the file, and add it to Exclude JS or to the List of scripts not to delay.

You changed a setting and nothing changed: you forgot to purge the cache, or you are testing while logged in. Purge Varnish too, and test in a private window.

Combine JS broke the site: turn it off and check that the site is back. If you still want it, turn it on again and exclude the problem file. On HTTP/2 you probably do not need it at all.

Images “jump” after Lazy Load: width and height are missing from the image tags with the JavaScript method. Add the correct dimensions, or switch to Native.

The mini-cart shows 0 items: turn on Refresh Cached Page Parts with the cart’s selector.

font-display is not added: CSS Minification is off, or the theme already defines font-display.

The API returns 404: Breeze API is off. 401: the token is wrong or shorter than 16 characters.

Black Friday80% off
80% off 2 months of managed hosting

The code BFCM802 takes 80% off your bill for the first two months (up to $200 off per month), including unlimited free site migrations. New customers only, and only until the offer ends.

The offer ends on December 4, 2026 at 23:59 (UTC+2).

Ends in—days—hours—minutes—seconds
Code:
Grab the 80% now

Start with a free trial, no credit card. Enter the code at checkout and check that it shows up.

After Black Friday: 30% off for 3 months with the code ASAEL. On a large server (above about $444 a month) ASAEL already saves more today. BFCM802 vs. ASAEL calculator

Sources

The official sources this page is based on (checked on 7 Nov 2026):

Frequently asked questions

Which Breeze settings improve the PageSpeed score the most?

On most sites: Lazy Load, CSS and JS minification, and Delay JavaScript. They directly affect LCP and initial load time. Turn them on one at a time, purge the cache and check that the site still works.

Should I enable Combine JS?

Usually not. According to Cloudways the benefit is small on servers running HTTP/2, and combining sometimes breaks scripts that depend on load order. It also does not work together with Delay JavaScript.

What is the difference between Delay JavaScript and Defer?

Defer downloads the file in parallel and runs it as soon as the HTML is ready. Delay holds the script until the visitor scrolls, clicks or moves the mouse. Delay saves more, but only suits scripts that do not need to run immediately.

Does cleaning the database in Breeze delete posts?

No. It only deletes old revisions, trashed items, spam, auto-drafts and expired temporary data. You still have to back up first, because the cleanup cannot be undone.

Can I turn off Lazy Load for a single image?

Only with the JavaScript method, using the data-no-lazy=”1″ attribute on the image tag. With the native method Breeze adds loading=”lazy” to every image that does not have it, and there is no exclusion box in the interface.

Can I use Breeze together with Autoptimize?

Yes. Breeze handles caching and Autoptimize handles minification. The condition is to turn off minification and the parallel options in Breeze, so the two plugins do not work on the same files.

Official source: Breeze File Optimization: Minify, Combine, Delay and Exclude JavaScript, Breeze Lazy Load, Breeze Preload, Breeze Advanced Rules, HTML Caching and Refresh Cached Page Parts, Breeze Heartbeat API, Breeze Database Options, Breeze Tools, Breeze Varnish Settings, Autoptimize and Breeze (Cloudways Knowledge Base). Written and checked by Asael Dreyer · Updated: 6 Nov 2026

Disclosure: this is an independent site, not the official Cloudways site. Some links on this site are affiliate links: if you sign up through them we earn a commission, at no extra cost to you. Full details

Picture of Asael Dreyer
Asael Dreyer

Hi, I'm Asael Dreyer, CEO of an SEO agency that runs hundreds of websites hosted on dozens of Cloudways servers.
Everything you will find here comes from hands-on experience, mine and my teams', straight from the field: from the guides to the recommendations. All to help you get the most out of Cloudways.

More about me →

Need help? Got a question about your server or this guide? Write to us and we will get back to you.

More guides on this topic:
מפריד
Thanks for your message!
We will get back to you soon.
Ready to get started?

Sign up with the coupon code ASAEL