Performance defaults
The server settings every WP Waterfall site starts with: page cache, compression, browser caching, PHP workers, OPcache, MariaDB, and WordPress cron.
Every site and environment runs in its own container with the settings below. You do not need to change them. Your plan and the site's tier change the numbers marked "per plan".
Page cache
The web server keeps a copy of each page and serves it without running PHP. The x-wpwaterfall-cache response header shows the result: HIT, MISS, BYPASS, or EXPIRED.
| Setting | Value |
|---|---|
| What is cached | GET and HEAD answers with status 200, 301, or 302 for the time set under Caching > Server Caching (1 hour unless you change it), and a 404 for 1 minute when nobody signed in asked for it |
| Skipped | Signed-in users, password protected posts, commenters, carts, and checkouts (by cookie); /wp-admin, /wp-login.php, /xmlrpc.php, /cart, /checkout, /my-account; every POST; any path under Caching > Rules > Paths the cache skips; and any answer that sets a cookie or says no-cache, no-store, or private |
| Busy pages | When a page expires, one request rebuilds it while other visitors get the previous copy. Many visitors on a cold page reach PHP once |
| PHP errors | If PHP fails or times out, visitors get the last good copy |
| Purge | WordPress clears the pages a change touches, and Clear all caches clears everything. See Clear all caches |
After Clear all caches, or a clear of single paths, WP Waterfall asks your site for the home page and the pages visitors asked for most today (up to 8 pages, from your own traffic log), so the first visitor gets a stored copy and does not wait for PHP. After you update a post in WordPress it does the same for that post and the home page. These are plain requests with no cookie, the same a visitor who is not signed in would make, and they run once, within 6 seconds. They skip staging and preview environments, suspended sites, password protected sites, sites with the server cache off, and every path the cache skips. On a block theme with three plugins, the first visit to a page after a full clear took about 485 ms of server time, because clearing PHP's code cache means the first page compiles its files again. A warmed page answers in under 2 ms.
Tracking parameters are not part of the cache key: /?utm_source=x, /?fbclid=y, and the parameters you list under Caching > Rules > Query parameters to ignore read the plain page. Any other query string is cached as its own page.
Compression
Pages, CSS, JavaScript, JSON, XML, feeds, SVG, and fonts are compressed with Brotli or gzip from 256 bytes up. Cloudflare in front of the site serves HTTP/2 to visitors and may recompress, for example with zstd.
Browser caching
The server tells browsers how long to keep static files:
| Files | Live and other Git mode environments | SFTP mode (a writable staging or preview) |
|---|---|---|
Uploads in /wp-content/uploads/ |
1 year | 1 year |
CSS and JavaScript with a content hash in the name, such as app.3f9a1c2b.js |
1 year | 1 year |
| Other theme, plugin, and WordPress files: CSS, JavaScript, images, fonts, video, audio, PDF | 7 days | Checked on every load |
Why 7 days and not a year: WordPress adds ?ver= to theme and plugin files, and the number often stays the same when the code changes. A year would hide a deploy from returning visitors. Build tools that put a hash in the file name get the full year. In SFTP mode the browser checks each file on every load and gets a quick "not modified" answer when nothing changed, so your edits show at once.
PHP
| Setting | Value |
|---|---|
| Workers | Up to one per PHP thread of the site. That is an allowance, a cap per site: from 2 at Single 20GB to 8 at Single 250GB, and more on the WP plans (see Site resources). Single plans, WP 2, WP 5, and WP 10 start workers on demand and stop them after 30 seconds idle (10 seconds on staging). WP 20 and up keep a few warm |
| Memory per worker | 256 MB for each request, or 512 MB on WP 60 and up. The pool is the threads times that memory, and it is a limit, not memory held back for you |
| Request time limit | 300 seconds, the same as the web server's wait |
| Slow log | Requests over 5 seconds are written to the PHP slow log |
| Worker recycling | Each worker restarts after 500 requests |
OPcache
OPcache keeps compiled PHP in memory: 192 MB on a Single plan, 256 MB on WP 2 to WP 40, and 384 MB on WP 60 and up (per plan). On live and other Git mode environments the code cannot change between deploys, so OPcache never checks file times, and each deploy resets it. In SFTP mode OPcache checks file times every 2 seconds, so an edit shows within 2 seconds. The JIT is off. It made an uncached page about 9% faster in our test (59 ms to 54 ms), but it has had more crash bugs than the rest of OPcache, and its buffer would come out of your PHP memory. Pages that come from the page cache do not run PHP at all.
MariaDB
| Setting | Value |
|---|---|
| InnoDB buffer pool | 384 MB on a Single plan, 768 MB on WP 2, WP 5, and WP 10, 1 GB on WP 20 and WP 40, and 1.5 GB on WP 60 and up (per plan). A PHP pool of 4 times the plan's buffer or more raises the buffer to a quarter of the pool. It never goes under MariaDB's 128 MB default, and it grows only as the database is read |
| Commit durability | Every commit is written to disk before it returns. A server crash loses no orders |
| Doublewrite buffer | Off. The ZFS file system already protects every block |
| Query cache | Off. It slows writes and does not scale |
| Temporary tables | 128 MB in memory before they go to disk |
| Connections | Two per PHP thread plus 20, for cron, WP-CLI, and the Database tab |
WordPress
- WP-Cron does not run on page loads. The server runs it instead, as Cron jobs explains.
- Post revisions and embeds keep the WordPress defaults. Plugins and themes rely on them. The emoji script and the visitor Heartbeat are off, as the next section says.
- The page cache runs in the web server, so WordPress needs no page cache plugin and no
WP_CACHEsetting. A page cache plugin adds work without a gain.
Front end defaults
Two things WordPress adds to a page are off for visitors, because every browser in use today does without them:
- The emoji script. WordPress prints about 3 KB of script, its settings, and a style so that emoji draw in browsers from before 2016. Emoji in your posts still show, and feeds and email are not changed. On a block theme with three plugins this took 7 ms of script time and 1.5 KB off each page, and the first paint came about 12 to 37 ms sooner in our test.
- The Heartbeat script, for visitors who are not signed in. A plugin that loads it makes every open tab send a request to PHP every 15 to 60 seconds, and Heartbeat pulls in jQuery. It stays when another script lists it as a dependency or names it, and for anyone who is signed in.
To turn both off, clear Front end defaults under Tools > WP Waterfall Cache > Settings in WordPress, or run wp option update wpwaterfall_frontend_defaults 0. A theme or plugin can also return false from the wpwaterfall_frontend_defaults filter. The oEmbed links in the page head stay, because they let other sites embed your posts.
Related
Still stuck?
Email support at wpwaterfall dot com with your site name and what you tried, or send us a message.