Page caches
BuilderOS clears the known page caches when something that affects all pages changes:
- Syncing a package or activating another version (rollback).
- Saving the Global design.
- Adding, removing or changing the default language.
- Editing the package’s header or footer, a global element or a theme template (also when publishing or retiring them).
- Saving or deleting a menu (classic or block).
- Changing the forms settings.
- Finishing the conversion of images to WebP.
- Saving the performance settings.
And it clears only one page (if the cache plugin allows it) when:
- You save a page with sections: its URL and that of its translations (its language selector and its
hreflangpoint to it). Cache plugins already clear the page itself when it is saved. - You restore a version of a page (History): only that page, even though the internal sections cache renews.
| Cache | How it is cleared (all / one page) |
|---|---|
| LiteSpeed Cache (also on Hostinger) | litespeed_purge_all / litespeed_purge_post |
| LiteSpeed server without the plugin | Header X-LiteSpeed-Purge: * / X-LiteSpeed-Purge: /ruta/ |
| Hostinger’s CDN (Hostinger Tools plugin, without LiteSpeed Cache) | Only the Hostinger Tools listener of litespeed_purged_all (Hostinger\Cdn\LiteSpeedHooks::purge_cdn_cache), without firing the action so as not to wake other listeners / — (no per-URL purge). With LiteSpeed Cache active its own notice does it. |
| WP Rocket | rocket_clean_domain() and rocket_clean_minify() / rocket_clean_post() |
| W3 Total Cache | w3tc_flush_all() / w3tc_flush_post() |
| WP Super Cache | wp_cache_clear_cache() / wpsc_delete_post_cache() |
| SiteGround Speed Optimizer | sg_cachepress_purge_everything() / sg_cachepress_purge_cache( URL ) |
| WP Fastest Cache | wpfc_clear_all_cache( true ) / singleDeleteCache() |
| Cache Enabler, WP-Optimize | Full purge / per post |
| Breeze, Nginx Helper, WP Engine | Full purge (when saving a page, the plugin itself does it) |
Only what exists on the site is called, once per change. If your host has its own cache with no integration (for example, a CDN), clear it from its panel.
Notes per host
Hostinger / LiteSpeed (without the LiteSpeed Cache plugin): LiteSpeed mode. BuilderOS writes at the top of the root .htaccess:
# BEGIN BuilderOS rendimiento
<IfModule LiteSpeed>
CacheLookup on
RewriteEngine On
RewriteCond %{HTTP_COOKIE} (wordpress_logged_in_|wp\-postpass_|comment_author_|woocommerce_items_in_cart|woocommerce_cart_hash|wp_woocommerce_session_|edd_items_in_cart|bos_nocache) [NC]
RewriteRule .* - [E=Cache-Control:no-cache]
RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$
RewriteRule .* - [E=Cache-Control:no-cache]
</IfModule>
# END BuilderOS rendimientoAnd on each page: X-LiteSpeed-Cache-Control: public,max-age=36000 + X-LiteSpeed-Tag: bosXXXXX, bosXXXXX_front | _list | _p<ID> (per-site prefix). Purge: everything with X-LiteSpeed-Purge: *; one post with X-LiteSpeed-Purge: tag=bosXXXXX_p<ID>, tag=…_front, tag=…_list. If the host has LiteSpeed’s cache turned off at the server level, ask them to enable it (the Report shows LiteSpeed: HIT/MISS). If you install LiteSpeed Cache, BuilderOS switches to “plugin” mode and removes its block.
Apache: disk mode with advanced-cache.php. “Compression and browser cache for the whole site” adds Brotli/GZIP and mod_expires. The wp-content/cache/builder-os/ folder carries an .htaccess that prevents opening it directly.
Nginx: disk mode with advanced-cache.php (PHP serves the stored HTML; with the .gz already compressed). The .htaccess isn’t read: add compression in the configuration (gzip on; gzip_types text/css application/javascript application/json image/svg+xml;) and protect the folder: location ~* /wp-content/cache/builder-os/ { deny all; }. If the host has FastCGI cache or Varnish, detected by headers in “Check now”: turn on the Varnish option or leave the host’s cache (and turn off BuilderOS’s if they both serve stored HTML twice).
Cloudflare in front: without a “Cache Everything” rule, Cloudflare doesn’t store HTML: nothing is needed. With it (or APO), add the zone and the token so BuilderOS clears it and configure the bypass on the wordpress_logged_in_ cookie.