Skip to content

WordPress page cache plugin

A cache saves the finished page. The question is who is allowed to receive it, and a normal cache answers that question before your protection does.

Page Cache add-on in BotBlocker Security

Fast copies, one strict condition

Speed comes from skipping PHP. Safety comes from deciding who skipped it.

The order that makes cache dangerous

A WordPress page cache plugin saves the HTML of a page and sends it to the next visitor without building the page again. That is where the speed comes from: no database queries, no plugins, no theme. It is also where the risk comes from, because the copy leaves before any protection code runs.

Install a cache in front of a firewall and the firewall sees fewer requests than it should. A blocked address receives a page from the cache and never reaches the rule that would refuse it. A visitor who has not passed the check yet receives content meant for someone who has.

This add-on stores pages inside the protection instead of in front of it. The copy is only handed to a visitor Early Init has already verified.

Four rules the cache follows

Verified visitors only

A cached page is served when the early check has already cleared the visitor. Bots and unchecked guests get a fresh page.

Never a check page

Check, block and access-denied screens are never stored, so a challenge cannot leak between visitors.

One cache per site

The add-on refuses to fight another cache plugin. When one owns the cache file, this one slows down and says so.

Fresh when it matters

Publishing, editing, commenting or changing a menu clears the pages it touches, without a manual purge.

The Early Init dependency

Page Cache has no check of its own. It reads the decision of the Early Init add-on, which checks a visitor before WordPress loads. Two conditions must be true: Early Init is on, and its setting for cached pages for verified visitors is on. Until then the main switch stays locked and the panel links to the missing setting.

That dependency is also the safety net. If Early Init disappears, because someone turns Early Init off, the cache pauses by itself, removes its file from WordPress and deletes the stored pages. No copy can reach a visitor without a check. When Early Init returns, caching starts again.

The second limit is ownership. A cache plugin writes one file that WordPress loads early, and only one plugin can own it. If another plugin still owns that file, this add-on works after the BotBlocker check instead of at the start of the request, which is correct but slower.

Settings that change the outcome

Cache lifespan

Twenty-four hours by default. A shorter value shows changes from other plugins sooner. Zero keeps pages until a purge.

Exclusions

URL patterns, cookie fragments, user agents and query parameters. A shop cart or member area belongs on the URL list.

Gzip copies

Stores a compressed twin next to each page. Almost every browser takes the smaller file, and the transfer gets shorter.

Who always gets a fresh page

Logged-in users, commenters and visitors who opened a password-protected post are served from PHP. So are shoppers with an item in the cart or a chosen currency, because their page differs from the stored copy.

Unverified visitors and bots never read the cache. Neither do form submissions, login requests, search results, feeds, previews or not-found pages. A page that fails while it is being built is not saved, so an error page cannot be served to the next person.

Preload fills the cache in the background by visiting the home page and the newest posts. It skips copies that are still fresh, and with a lifespan of zero it rebuilds everything, which makes it a heavy operation on a large site.

One of hundreds of BotBlocker capabilities

This add-on covers one job. The core plugin brings the firewall, the visitor check, the login rules and the log; PRO features extend them further. Install BotBlocker, turn on what your site needs and leave the rest off.

BotBlocker protection shield

Questions about the cache

Why is the main switch locked?
Early Init is not ready. Turn on Early Init and its setting for cached pages for verified visitors, then save.
A page still shows the old text.
Purge this page from the admin bar or clear the whole cache in the panel. A CDN or the host may also hold its own copy.
Can a cached page show personal data to someone else?
Not from this cache: those visitors are excluded by default. A cart or member page that still leaks belongs on the never-cache URL list, followed by a purge.
Does a bot ever get a cached page?
No. Without a verified visitor decision the request goes to PHP and the normal check runs.
How do I protect the cache folder?
Apache and IIS get a rule file from the add-on. On nginx, ask your host for a deny rule; the access module reference shows the syntax.