What’s New in BerqWP 4.1.10: Database Optimization and Debloat

BerqWP 4.1.10 ships two new tabs inside the plugin settings: Database and Debloat. They cover two jobs that, until now, most site owners handled with a separate plugin like WP-Optimize or Perfmatters. Now they sit alongside BerqWP’s caching, Critical CSS, and image optimization, so your whole performance stack lives in one place.

The Database tab cleans up the clutter that builds up in your WordPress database over time. The Debloat tab strips out background WordPress features you probably don’t need. Neither one requires configuration to get started, and both are safe by default.

TL;DR: BerqWP 4.1.10 adds native WordPress database optimization (revisions, transients, spam, table optimization, with optional scheduling) and a Debloat tab (Heartbeat API control plus toggles for emojis, embeds, XML-RPC, and head cleanup). Everything is off or set to defaults until you turn it on, except emojis, which are disabled out of the box.

Why Database Optimization and Debloat Belong in One Plugin

A slow WordPress site is rarely slow for one reason. It’s usually a stack of small things: a bloated database, background HTTP requests you don’t need, scripts loaded on every page that serve no purpose. Caching and Critical CSS handle the front end. The Database and Debloat tabs handle the rest.

Until now, that “rest” meant installing another plugin. WP Rocket ships its own database cleanup. Perfmatters built its reputation on debloating. Both are good at what they do, but they’re another plugin to license, update, and configure. If you’re already running BerqWP for caching and Core Web Vitals, the new tabs let you consolidate instead of stacking tools. You can see how BerqWP stacks up in our BerqWP vs WP Rocket and BerqWP vs Perfmatters comparisons.

This release follows the same direction we set with the BerqWP v4 release: one plugin that handles the full performance picture, from server-side cache delivery to the database underneath it.

WordPress Database Optimization, Now Built Into BerqWP

Every WordPress site accumulates database junk. Post revisions pile up. Auto-drafts sit there forever. Expired transients never get cleared. Spam comments linger. Over months and years, this bloat slows down database queries, which in turn slows down your server response time and everything built on top of it.

The new Database tab gives you manual cleanup actions and an optional scheduler.

Database optimization settings

Cleanup Actions (Run Anytime)

Each action runs on demand with one click and reports how many items it cleaned up. Nothing here runs automatically unless you also turn on Scheduled Optimization below.

ActionWhat it doesConfiguration
Post revisionsCleans up old revisions, keeping only the most recent onesKeeps the last 5 by default, you can change this number
Auto-drafts & trashed postsRemoves leftover auto-saved drafts and posts sitting in the trashNo options
Expired transientsClears out expired temporary cache dataNo options
Spam & trashed commentsRemoves spam and trashed commentsNo options
Orphaned post metaCleans up leftover data from deleted postsNo options
Optimize database tablesOptimizes your database tables for better performanceNo options

Run these whenever your site feels sluggish or after a big content cleanup. The post revisions action is the one most sites benefit from most, especially blogs with years of edits.

Scheduled Optimization

If you’d rather not remember to run cleanup manually, Scheduled Optimization handles it for you.

  • Enable/disable: Off by default. You turn it on for anything to run automatically.
  • Frequency: Daily, Weekly, or Monthly. Weekly is selected by default.
  • Tasks to run on schedule: Pick which cleanup actions run automatically. Post revisions, Expired transients, and Spam & trashed comments are pre-selected by default. The rest stay off until you enable them.
  • Last Run: See how long ago the schedule last ran.
  • Next Run: See when the next scheduled cleanup will happen.

The defaults are conservative on purpose. Weekly is frequent enough to keep bloat in check without hammering your database, and the three pre-selected tasks are the safest, highest-value cleanups.

Debloat WordPress: Strip Out What You Don’t Need

The Debloat tab targets the background WordPress behavior that loads on every page whether you use it or not. Two sections: Heartbeat API control and a set of feature toggles.

Debloat settings

Heartbeat API Control

WordPress uses the Heartbeat API to “check in” with your server in the background, for things like autosave and the “another user is editing this post” warning. On some hosting setups, especially shared hosting, that periodic check-in adds avoidable load.

The default setting is Default (no changes), meaning Heartbeat behaves exactly as WordPress normally does. Your options:

  • Default (default setting): no changes.
  • Restrict to post editor only (recommended): Heartbeat only runs while you’re actively editing a post, reducing background activity everywhere else.
  • Throttle interval everywhere: keep it running, but less frequently. You set the interval, default 60 seconds if this mode is selected.
  • Disable completely: turns it off entirely. Note that this also disables autosave and the “another user is editing” warnings.

The recommended option, restrict to post editor only, is the sweet spot for most sites. You keep autosave where it matters and cut the background noise everywhere else.

Feature Toggles

Simple on/off switches to disable WordPress functionality you don’t need. All of these are off by default, meaning the feature stays enabled and unchanged, except Emojis, which is disabled by default.

FeatureWhat disabling it doesDefault
EmojisStops loading the emoji script that WordPress adds to every pageDisabled by default
EmbedsTurns off the ability to embed your posts on other sites, and removes related scriptsOff
XML-RPCDisables an older remote-access feature that’s rarely needed and often targeted by attackersOff
REST API Discovery LinkRemoves a technical link from your page’s <head>. Your site’s REST API keeps working normally.Off
Head CleanupRemoves a few unused technical tags from your page’s <head> sectionOff
Self PingbacksStops WordPress from creating a comment on your own post when you link to another post on your own siteOff

Emojis being disabled by default is the one opinionated choice here. WordPress loads an emoji polyfill script on every single page, front and back, and almost no site actually needs it. Turning it off is a free, zero-risk win, so we turned it on for you.

The rest we leave to your judgment. XML-RPC is worth disabling if you don’t use the mobile app or external publishing tools. Head Cleanup and the REST API Discovery Link are small, safe reductions in page weight. Self Pingbacks is a quality-of-life toggle for anyone tired of self-referencing comment notifications.

How to access the New Tabs

Both tabs live in your BerqWP settings, under the same screen you already use for caching and optimization.

  1. Update BerqWP to 4.1.10 or later.
  2. Open BerqWP Settings and switch to the Database tab.
  3. Run any cleanup action on demand, or enable Scheduled Optimization and pick your frequency and tasks.
  4. Switch to the Debloat tab.
  5. Choose your Heartbeat API setting and toggle off any features you don’t use.

There’s no required order. You can debloat first, clean the database first, or do both at once. None of these actions conflict with BerqWP’s caching or image optimization. For the broader picture of how everything fits together, see our BerqWP best practices guide.

What This Means for Core Web Vitals

Database optimization and debloating don’t show up in a Lighthouse report the way a large image or a render-blocking script does. Their effect is upstream. A leaner database means faster query responses, which means a lower server response time, which feeds directly into your LCP and your overall Core Web Vitals scores. Fewer background requests and head tags mean less work for the browser on every page load.

Stack these tabs on top of BerqWP’s existing caching, Critical CSS, and image conversion, and you’ve covered the full performance stack from database to rendered pixel. See the complete feature list for everything BerqWP handles.

What’s Next

4.1.10 is a focused release: two tabs, one job each, both safe by default. We’re already working on the next round of improvements. If you want to follow along, the changelog tracks every release.

If you’re not running BerqWP yet, you can get started here. Existing users, just update to 4.1.10 from your WordPress dashboard.

BerqWP v4: Built for Every WordPress Site

This is the biggest update we’ve shipped since BerqWP launched.

v4 isn’t a collection of new settings or tweaks. It’s a rethink of how BerqWP works from the ground up, built around two things we kept hearing from users: more reliability, and a free option that actually does something meaningful.

Here’s what changed.


A More Reliable Connection to Our Servers

In v3, the plugin uploaded your page’s HTML, CSS, JavaScript, and fonts directly to our servers for optimization. This worked well for most sites, but on certain hosting environments it caused problems. Hosting firewalls would block the outgoing file transfers, interrupting optimization and leaving sites with broken or missing cache.

In v4, we changed this entirely.

The plugin now sends only two things to our servers: your page URL and your plugin settings. Our cloud servers then fetch everything they need directly, using Cloudflare Workers to make those requests. Cloudflare Workers are far less likely to be blocked by hosting firewalls than traditional server-to-server requests. All optimization happens on BerqWP’s own cloud infrastructure.

Nothing is uploaded from your server. Nothing is transferred. Just a URL and your settings.

For most users this change will be invisible. For the users who were experiencing firewall blocks and failed optimizations, it should resolve the problem entirely.


Two Optimization Methods: Local Optimization and BerqWP Cloud

v4 introduces a formal choice between two ways to run BerqWP.

Local Optimization (Free)

Local Optimization runs entirely on your own server using PHP. No account. No license key. No external dependencies.

It is our way of giving something back to the WordPress community, and it is free forever.

What you get with Local Optimization:

  • Full-page caching, with server-level delivery on Apache (automatic .htaccess rules written on activation) and configurable delivery on Nginx
  • Four optimization modes: Standard, Smart, Blaze, and Turbo
  • Lazy loading for images, background images, YouTube embeds, and Google Maps
  • LCP image preloading, automatically detected per page
  • Image dimension attributes to prevent layout shifts
  • Prerender on Link Hover, using the browser’s Speculation Rules API
  • URL prefetching for faster navigation
  • Font optimization
  • Sandbox Mode for safe testing

BerqWP Cloud (Premium)

BerqWP Cloud is not Local Optimization with more features switched on. It is a fundamentally different level of optimization.

Every optimization runs on our cloud infrastructure. Our servers fetch your pages, apply every optimization we are capable of, and store the result back on your site as cache. Your server does none of the heavy lifting.

Beyond the feature set, BerqWP Cloud delivers real-time compatibility patches for themes and plugins. When something in the WordPress ecosystem changes and causes an issue with optimization, we can fix it at the cloud level without requiring a plugin update. Your sites stay compatible automatically.

Cloud-exclusive features include: critical CSS generation, WebP image conversion, Fluid Images with AVIF delivery, JavaScript execution modes, BerqWP CDN, Web Vitals Analytics, and automatic cache warmup across your entire site.


Server-Side Cache Delivery

On Apache servers, BerqWP now automatically writes rewrite rules into your .htaccess file when the plugin is activated. When a visitor lands on a cached page, Apache serves the pre-compressed HTML file directly, before PHP or WordPress loads at all.

This is the fastest possible way to deliver a cached page. No PHP execution. No database queries. Just a file served directly from disk.

The cache is smart: it skips logged-in users, WooCommerce cart sessions, and password-protected pages automatically. The rules are removed cleanly when you deactivate the plugin.

On Nginx servers, you can configure equivalent rules manually. The full configuration is documented in our help center. Read: Serve Cached Pages Directly from Nginx


New Optimization Modes

The four optimization modes have been renamed to better reflect what they actually do:

Old NameNew NameCSSJavaScript
BasicStandardBrowser defaultBrowser default
MediumSmartAsynchronousAsynchronous
BlazeBlazeAsynchronousDelayed
AggressiveTurboDelayedDelayed

Start with Turbo. Step down to Blaze or Smart if anything on your site breaks.


New in v4 and available on both Local Optimization and BerqWP Cloud: when a visitor hovers over a link, BerqWP uses the browser’s Speculation Rules API to start prerendering the destination page in the background. By the time they click, the page is already loaded.

This is available in Chrome and Edge today. Safari and Firefox support is on the way.


Smarter Cache File Structure

v4 changes how cached files are stored on disk. Cache files are now stored at a path that mirrors your site’s URL structure:

wp-content/cache/berqwp/html/your-domain.com/page-path/index.html.gz

This replaces the flat MD5-hashed filenames used in previous versions. The new structure makes it easier to inspect, debug, and reason about what’s cached and where.


Separate CSS and JavaScript Exclusion Fields

Previously, CSS and JavaScript exclusions shared a single field. In v4 these are now split into three separate fields under BerqWP > Script Manager:

  • Exclude CSS — URLs, filenames, or keywords to exclude from the CSS delivery method
  • Exclude JavaScript — URLs, filenames, or keywords to exclude from the JavaScript delivery method
  • Exclude Third-Party Scripts — keywords to exclude from the new Delay Third-Party Scripts feature

Two new toggles come with these fields. Defer Excluded JavaScript makes excluded JS files non-blocking by deferring them, so removing a script from optimization no longer means it has to render-block the page. Delay Third-Party Scripts delays scripts from external domains until user interaction, keeping initial page load clean without touching your own JS files.


Smarter CDN Asset Handling After Updates

When you install or update a plugin or theme, BerqWP now automatically marks your CDN assets as stale. The next time a page is optimized, fresh assets are generated and pushed to the CDN.

Previously this required a manual CDN cache flush after every plugin or theme update. Now it happens automatically. Your visitors always get the correct CSS, JavaScript, and other assets after an update, without any action on your part.

This is distinct from a full cache flush. Only the CDN assets are marked stale, not the entire page cache.


MetaBox AIO Compatibility

BerqWP Cloud’s cache warmup now detects custom post types registered through the MetaBox All-In-One plugin. Previously, MetaBox AIO custom post types were silently skipped during warmup, leaving those pages uncached until a real visitor hit them. v4 resolves this automatically.


How to Get v4

If you’re already running BerqWP, update through your WordPress dashboard. The plugin will upgrade in place.

If you have an active license key, the plugin will automatically switch to BerqWP Cloud after the update. No action needed.

If you don’t have a license, the plugin will default to Local Optimization. Everything still works — you just get the free feature set.

After updating:

  1. Go to BerqWP > Dashboard and confirm your optimization method is set correctly
  2. Set your optimization mode. We recommend starting with Turbo
  3. Flush your cache from the BerqWP admin bar

If you’re new to BerqWP, install it from the WordPress plugin directory and follow the same steps. No account required for Local Optimization.


What’s Next

v4 is the foundation we’re building on. The architecture change to URL-only communication opens up optimizations that weren’t possible before.

If you run into anything unexpected after updating, Sandbox Mode is your friend: enable it in BerqWP > Dashboard, test your site, and reach out at berqwp.com/support if something needs attention.

Thank you to everyone in the community who tested the beta, reported issues, and gave us feedback. This release is better because of you.

The BerqWP Team

Offload Performance Headache to BerqWP

No configurations
Built for non techies
100% risk free
BerqWP v4 Dashboard
👋 Need help? Chat with us!
AI Support
Online
Hi! How can I help you today?
Powered by WP Replai