Skip to content
Sign in

Prime Cache – Page Cache on Activation & One-Click Speed Optimization

Page caching that works the moment you activate it, plus one-click speed tuning.

Not scanned yet WordPress plugin 30 installs

Install in

No install steps yet

Follow the steps on the source page.

Activate Prime Cache and your pages are cached. There is no setup screen to get through first and no wp-config.php to edit.

When you want more, one button, Auto, applies a set of speed settings in one go: HTML, CSS and JavaScript minification, deferred JavaScript, non-blocking CSS, lazy loading, browser caching, link prefetching and cache preloading. Every setting stays on its own screen afterwards, so you can review or change any of them.

Watch the 5-minute setup tutorial:

How it works without any setup

Page caching is on from the moment you activate the plugin. Prime Cache runs its page-cache engine early in each request and sends the stored copy of a page instead of building it again, so the theme and the database queries behind the page are skipped. Logged-in users, the admin screens, form submissions and WooCommerce cart, checkout and account pages are never served from the cache.

Two faster serving paths are optional:

  • .htaccess Optimization (servers that read .htaccess): cached pages are sent by the web server without starting PHP. Turn it on in the Page Cache tab, or let Auto turn it on when .htaccess is writable.
  • Drop-in mode: add define( 'WP_CACHE', true ); to wp-config.php yourself and cached pages are served before WordPress core loads. The settings screen shows the exact line.

The free plugin never edits wp-config.php. That file controls the whole site and some hosts manage it themselves, so an automatic edit is a risk the plugin does not take. The drop-in step stays in your hands, and page caching works without it.

Prime Cache is developed and run on shared hosting.

If something looks wrong after Auto

Auto’s JavaScript and CSS settings do the most for speed, and they are also the ones most likely to disagree with a theme or another plugin. Menus, sliders and forms are where problems usually show.

The quickest fix is the Safe preset in the Tools tab. It keeps page caching, browser caching and lazy loading, and turns off minification, deferred and delayed JavaScript, the CSS delivery settings and the other Auto settings that change how a page looks, including any you turned on yourself. The preset card in the Tools tab lists every setting it turns off. Clear the cache and check the page again.

To go back to exactly the settings you had before Auto, press the Undo button above the presets in the Tools tab. It puts back what the last preset changed.

To keep the rest of Auto and find the one setting that disagrees, apply Auto again and turn settings off in this order instead, clearing the cache after each step:

  1. Delay JavaScript Execution and Maximum Delay. Auto turns them on only on a tested theme (Cocoon for now) with no shop, page builder, slider or popup plugin active.
  2. Load JavaScript Deferred
  3. Load CSS Asynchronously (Free), then Inline Small CSS Files
  4. Minify HTML, Minify CSS and Minify JavaScript

Free features

  • Page cache, on from activation
  • Auto preset (plus Safe, Balanced and Aggressive presets)
  • Browser cache headers
  • .htaccess Optimization
  • Gzip compression
  • 404 page caching
  • HTML / CSS / JavaScript minification
  • Inline small CSS
  • Defer JavaScript
  • Delay JavaScript, including Maximum Delay
  • Google Fonts display=swap
  • Lazy load for images, iframes and videos
  • WebP conversion, with bulk conversion
  • Image resize on upload and EXIF removal
  • Cache preloading for the homepage, public posts and public taxonomies
  • Link prefetching
  • Performance tweaks (disable emoji, jQuery Migrate, embeds and other WordPress extras)
  • Automatic cache purge on content changes
  • Security headers
  • Import / Export
  • WP-CLI support

Prime Cache Pro (optional add-on)

Prime Cache Pro is a separate add-on sold on the author’s website (https://raplsworks.com/plugins/prime-cache/). Everything described above is free, with no limits, and the free plugin does not need Pro to work.

With Pro installed, Auto also turns on:

  • Remove Unused CSS, with automatically generated Critical CSS
  • Delay JavaScript Execution with Maximum Delay
  • AVIF image conversion (WebP when the server cannot make AVIF)
  • Self-hosted Google Fonts and font preloading
  • LCP optimization
  • Speculation Rules
  • Click-to-load YouTube thumbnails
  • Preloading of taxonomy archives

Pro also adds features you turn on yourself:

  • AI speed diagnosis and consultation (bring your own API key: Anthropic / OpenAI / OpenRouter / Gemini)
  • CSS and JavaScript combining
  • CDN URL rewriting
  • Cloudflare, Sucuri and Varnish integration
  • Object cache backends (APCu / Redis / Memcached)
  • Sitemap-based cache preloading
  • Database cleanup
  • Heartbeat control
  • Self-hosted Google Analytics
  • One-click WP_CACHE setup in wp-config.php, with a backup written first
  • A warning when a server-side cache sits in front of the site

Prime Cache Pro walkthrough (Japanese narration):

Japanese

The admin screens are translated into Japanese.

Documentation

Full documentation for every setting and every behavior:

  • Free Manual (English): https://raplsworks.com/prime-cache-free-manual-en/
  • Free 版マニュアル (日本語): https://raplsworks.com/prime-cache-free-manual-ja/
  • Pro Manual (English): https://raplsworks.com/prime-cache-manual-pro-en/
  • Pro 版マニュアル (日本語): https://raplsworks.com/prime-cache-manual-pro-ja/

External services

The free Prime Cache plugin does not connect to any external service. No data is sent to any third party at any time by the free plugin.

The following third-party hostnames appear inside the plugin’s source code as string literals only, and the plugin never makes outbound requests to them:

  • googletagmanager.com, google-analytics.com, connect.facebook.net, widget.intercom.io, embed.tawk.to — listed in includes/class-file-optimizer.php as URL-pattern presets for the “Delay JS” feature. They are used only to recognize third-party scripts already present on the page (added by other plugins or the theme) and to defer their execution until first user interaction. The plugin itself does not load, fetch, or embed any of these services.
  • cdnjs.cloudflare.com — referenced only in code comments and admin-screen help text describing how some themes replace bundled jQuery with a CDN version. The plugin does not call or include any resource from this host.

If you install the optional Prime Cache Pro add-on, that separate plugin documents its own external service usage in its own readme — Prime Cache (free) on its own makes no outbound calls.

Why the page-cache drop-in keeps an open output buffer

A page cache has to capture the entire rendered HTML response so the body can be written to disk before the browser receives it. dropins/page-cache.php opens an ob_start() early in the request and lets PHP flush the buffer naturally at request shutdown — the captured body is written to the cache file inside the buffer callback. The buffer is deliberately not closed mid-request; doing so would either truncate the cached body or break the capture for plugins/themes that emit their last output during shutdown. This is the standard design for WordPress page caching. The HTML transformation pipeline in includes/class-html-pipeline.php follows the same pattern for the same reason.

Written by Joobi from the project's own listing. See the source page

cachecore web vitalsoptimizationpage cacheperformance
21 Nov 2026
Version 1.10.67 released. Not scanned yet.

1.10.67

  • Changed: Prime Cache runs on PHP 7.4 and later again. 1.10.66 required PHP 8.2; the code itself works on 7.4, so the requirement is back to where it was. PHP 8.2 or later is still recommended, because 7.4, 8.0 and 8.1 no longer receive security fixes.

1.10.66

  • Changed: Prime Cache now requires PHP 8.2 or later. PHP 7.4, 8.0 and 8.1 no longer receive security fixes. Sites on an older PHP version keep the version they have; WordPress does not offer this update until PHP is upgraded.

1.10.65

  • Added: on a tested theme (Cocoon and its child themes for now) with no shop, page builder, slider or popup plugin active, the Auto preset turns on Maximum Delay. The Auto card in the Tools tab shows whether it will, and why. A site that already applied Auto is not changed until Auto is pressed again.
  • Added: an Undo button for the last preset in the Tools tab. It puts back the settings that preset changed, rebuilds the Prime Cache block in .htaccess from them and clears the cache. Only the last preset is kept.
  • Changed: the Aggressive preset turns on Maximum Delay with Safe Mode off, and the Safe preset turns Maximum Delay off.
  • Added: cookie consent banners from CookieYes, Complianz and Cookie Notice are never delayed. Contact Form 7, MW WP Form, Snow Monkey Forms and WPForms are new choices in the Delay JS exclusion presets; each also keeps the scripts it needs (jQuery or wp-i18n) from being delayed.
  • Fixed: after Prime Cache Pro was turned off, the .htaccess block kept its AVIF rules until settings were saved again. The block is now rewritten on the next request after the add-on is turned off or back on.
  • Changed: the .htaccess rules add Vary with “Header merge” instead of “append”, so Prime Cache no longer repeats Accept or Accept-Encoding when the value is already present.
  • Docs: a 1.10.23 changelog line was cut off on WordPress.org at a raw script tag; it now shows in full.

1.10.64

  • Added: during Black Friday 2026 (November 26 to December 2), the Dashboard tab of the Prime Cache settings shows a short notice about the Prime Cache Pro discount, with the end time in your site’s timezone. It appears only on that tab, only to administrators of sites where Prime Cache Pro is not installed, and not at all outside those dates. Each administrator can dismiss it for good, and the prime_cache_show_promo_notice filter turns it off. Nothing is loaded from outside the plugin.
  • Changed: while that notice is shown, the review request is held back, so the two never appear together. Once the notice is dismissed or the dates have passed, the review request returns under its usual conditions.

1.10.63

  • Fixed: the .htaccess rules now register .woff/.woff2 as font/woff and font/woff2, so the browser-cache expiry for these fonts takes effect.
  • Fixed: when an update rewrote the .htaccess rules automatically, it ran before add-ons were loaded, so Prime Cache Pro’s AVIF rules were left out until settings were saved again. The rewrite now runs after add-ons have loaded, and it changes only the lines between the Prime Cache markers.

1.10.62

  • Fixed: with Delay JavaScript on, the Cocoon theme’s mobile sidebar drawer opened empty on the first tap and worked from the second tap on. The tap that opens the drawer is also the one that starts loading the delayed scripts, so Cocoon’s script that moves the sidebar into the drawer had not run yet. A small script that is never delayed now moves the sidebar when Cocoon’s script has not run yet, and does nothing once Cocoon’s script is running. Only sites using Cocoon are affected.

1.10.61

  • Display name and readme updated.
  • Changed: the Safe preset now also turns off Load CSS Asynchronously, Inline Small CSS Files and the other page-changing settings Auto turns on (Use Local jQuery, Disable Gutenberg Block CSS, Disable WP Embed, Disable oEmbed, Add Missing Image Dimensions, the HTML DOM and comment options, and the WooCommerce script and cart-fragment options), so it undoes every setting in the free Auto preset that can change how a page looks. The Safe card in the Tools tab now lists everything it turns off. Add-ons can extend Safe through the new prime_cache_preset_safe filter.

1.10.60

  • Fixed: with “Purge on WordPress core update” turned off, no cache was cleared after a plugin or theme update either — even with “Purge on plugin activate/deactivate” and “Purge on theme switch” enabled. All three update types arrive through one WordPress hook, and that hook was only registered when the core-update setting was on. It is now registered whenever any of the three is enabled, and each update type follows its own setting. Sites with all three enabled (the default) are unaffected.

1.10.59

  • Fixed: the CSS minifier corrupted :not() selectors. A rule that added the required space to media-query keywords (and( to and () also matched the :not( pseudo-class, turning .a:not(.b) into the invalid .a:not (.b) — so browsers dropped every style rule that used :not(). On themes that rely on :not() for layout (e.g. Avada’s search form) this left elements mispositioned or unstyled once CSS optimization was on. The minifier now leaves :not() untouched while still spacing media-query keywords.
  • Changed: minified CSS/JS (and, with the Pro add-on, combined and unused-CSS files) now include the plugin version in their cache filename. A code fix like the one above previously reused the old, broken output because the source file’s timestamp had not changed; now an update regenerates the assets automatically, and the new filenames also stop upstream/server caches from serving stale bytes. Existing optimized files are replaced on the next visit after updating.

1.10.58

  • Fixed: a deleted image could keep being shown. The WebP rewrite rule served a .webp whenever one existed on disk, without checking that the original was still there — so an orphaned .webp left behind by a deleted original kept being served at 200 instead of returning a clean 404. The rule now also requires the original file to exist. (The Pro add-on’s AVIF rule gets the same fix.)
  • Fixed: deleting an image in the Media Library now also deletes its generated .webp/.avif variants (the original and every size). Before, WordPress removed only the originals it tracks and the converted files were orphaned — and because conversion skips a file that already has a variant, re-uploading an image under the same name could keep showing the OLD picture.
  • Added: an orphaned-file cleanup for variants left behind by deletes made before this fix. The Media settings show a count and a one-click “Delete Orphaned Files” (with confirmation); wp prime-cache image-orphans lists them (add --delete to remove).

1.10.57

  • Fixed: updating a plugin or theme did not clear the cache, so a cached page — and any combined/minified CSS or JS whose content hash came from the updated files — could keep serving the old version until the cache was cleared by hand. Prime Cache only purged on WordPress core updates, and a normal in-place plugin update leaves the plugin active, so no other event caught it. It now purges the whole cache after a plugin or theme update as well (core updates already did this; translation-only updates are still ignored).

1.10.56

  • Fixed: an optimizer asset could be written as a 0-byte file and then served as an empty but “successful” (200) stylesheet or script, leaving the page silently unstyled — harder to spot than a 404. Prime Cache now refuses to write an empty optimized asset and falls back to the original, un-optimized file instead. This is a likely cause of the blank Cocoon mobile sidebar on some sites.
  • Added: the hourly cleanup now also ages out generated optimizer assets (combined/minified CSS/JS and Remove Unused CSS) and removes any stray 0-byte files. Previously these lived in a sibling directory the cleanup never reached, so they could accumulate without bound; critical CSS and self-hosted fonts are left untouched. A still-referenced asset that is removed is rebuilt on demand by the missing-asset fallback added in 1.10.55.

1.10.55

  • Fixed: “Clear Minified CSS/JS” and “Clear Critical CSS” now also clear the page cache. The cached page HTML embeds the hashed filenames of those generated assets; deleting the files while keeping the HTML left every cached page pointing at assets that no longer existed. Served as a cache hit, they returned the theme’s 404 HTML page, which the browser rejects as a stylesheet, so the page rendered unstyled until it was regenerated. Both buttons now purge the page cache so the HTML is rebuilt with valid asset URLs.
  • Added: a missing-asset fallback. If an optimizer asset (minified/combined CSS/JS or Remove Unused CSS) is ever requested but its file is gone — a partial cache clear, a manual delete, a disk hiccup — Prime Cache now rebuilds it on the fly from the original source (recorded in a small manifest) and serves it with the correct text/css / application/javascript type and a 200, self-healing it back to disk. When it cannot be rebuilt it serves an empty file of the right type instead of a 404 HTML page, so a single missing asset can no longer break a page’s styling.

1.10.54

  • Fixed: with Defer or Delay JavaScript enabled, WordPress i18n-based scripts could fail with “wp is not defined” or “Cannot read properties of undefined (reading ‘hooks’)”, breaking translations, Contact Form 7, the admin bar, and other wp.* features. A script kept synchronous for its inline translation block (e.g. wp-i18n, which carries a -js-after) was allowed to run before its deferred/delayed dependency (wp-hooks), so it read window.wp.hooks before wp-hooks had defined it — taking down the whole wp namespace. Prime Cache now keeps the dependencies of such kept-synchronous scripts synchronous as well, preserving dependency order. The set is scoped to scripts actually printed on the page, so unrelated optimizations — including mobile jQuery defer — are unaffected.

1.10.53

  • Fixed: on the Cocoon theme, the mobile slide-in sidebar could still open blank even after the jQuery fix in 1.10.52. When the sidebar button is tapped, Cocoon moves the sidebar into the drawer and renames its id, but its own script then re-selects the element by the old id when adding the visibility class — so the class is never applied and the relocated sidebar falls back to the theme’s mobile display:none. Prime Cache now outputs a small Cocoon-only CSS rule that keeps the relocated sidebar visible inside the drawer (scoped to the drawer, so the in-page sidebar is untouched). Together with 1.10.52 this fully resolves the blank Cocoon mobile sidebar.

1.10.52

  • Fixed: with Delay JavaScript enabled, jQuery — and with it every jQuery-dependent script on the page — could become undefined on any site where the theme or a plugin calls jQuery.noConflict() (the common call that frees the $ alias). The Delay JS loader backed both window.jQuery and window.$ with a single internal variable, so noConflict() resetting window.$ to its pre-jQuery value also wiped window.jQuery. The whole page then failed with “jQuery is not a function” / “$ is not a function”, breaking anything that relies on jQuery. window.$ now keeps its own backing value, independent of window.jQuery. This is the actual cause behind the Cocoon mobile slide-in sidebar opening blank (reported for 1.10.51), and the fix restores every other jQuery-dependent feature broken the same way.
  • Reverted: the Cocoon-specific change shipped in 1.10.51 targeted the wrong cause and has been removed; the jQuery loader fix above is the correct fix.

1.10.51

  • Attempted a Cocoon-specific fix for the mobile slide-in sidebar opening blank under Delay JavaScript, by forcing Cocoon’s main script to run at load. This addressed the wrong cause and did not resolve the issue; it is reverted in 1.10.52, which fixes the real cause (see above).

1.10.50

  • Fixed: the minified CSS/JS cache is now keyed by the source file rather than its request URL. Some themes — Cocoon most notably — add a version query string to every stylesheet that changes on each page render; because the cache filename was derived from the full URL, byte-identical CSS was written to a fresh file on every hit and the wp-content/cache/prime-cache-fo folder grew without bound. One site had reached over 250,000 files and several gigabytes of duplicate CSS. The cache key now uses the resolved file path plus its modification time and size, so identical output collapses to a single file. After updating, clear the Minify cache once to remove the duplicates that have already accumulated.

1.10.49

  • Display name shortened to “Prime Cache – Page Cache & Core Web Vitals (Zero Config)”. The previous title listed six features and ran to 81 characters, past the 80 the directory allows and well into what the guidelines call readme spam. The features it named have moved into the description, where they are still indexed. No functional change.

1.10.48

  • Fixed: “Inline Small CSS Files” now preserves each stylesheet’s media condition. Inlining a small media-scoped stylesheet — for example a theme’s mobile-only CSS loaded via <link media="(max-width:800px)"> — previously dropped the media query, so those rules applied at every screen size and could break the desktop layout. The inlined CSS is now wrapped in its matching @media block.

1.10.47

  • Fixed: the Object Cache status could show a backend as “Active” when it was installed but not actually running — for example when the PHP extension is present but disabled at runtime, so WordPress had quietly fallen back to its internal cache. The status now confirms the object cache really initialized before reporting it active, and shows “Installed but not running” otherwise. (Pairs with Prime Cache Pro 1.9.6.)

1.10.46

  • Changed: the “How to turn on drop-in mode” step-by-step guide in the setup notice is now collapsed by default so the notice stays compact — click the summary to expand it. (Refines the 1.10.44 change, which showed it expanded.)
  • Changed: removed the “Protocol” line from the Auto preset’s environment summary. The server-visible HTTP protocol is unreliable behind a reverse proxy or CDN (PHP can report HTTP/1.1 even when visitors are on HTTP/2), so displaying it was misleading; no setting depends on it.

1.10.45

  • Improved: overhauled the optimization presets (Aggressive and Auto) for higher Core Web Vitals scores, based on real-world tuning. They now keep the first several images eager to protect LCP, add missing image width/height to reduce layout shift (CLS), enable DOM-based HTML optimization, and use a longer Delay JS fallback. With the Pro add-on, presets now favor Remove Unused CSS + Critical CSS instead of file combining (which provides no benefit on HTTP/2) and replace YouTube embeds with click-to-load thumbnails. Re-apply a preset from the Tools tab to pick up the new tuning.

1.10.44

  • Improved: the “Maximum Delay” warning now has a “Got it” button. Instead of reappearing every time you save while Maximum Delay is on, the warning stays on the plugin screen until you acknowledge it once, then hides for good. It shows again if you turn Maximum Delay off and back on.
  • Improved: the optional “enable drop-in mode” (WP_CACHE) instructions are now beginner-friendly. The step-by-step guide is shown expanded with a copy-ready code line and a clear before/after example of wp-config.php, so anyone can make the one-line change with confidence.

1.10.43

  • Added: a friendly one-time review request. After you’ve used Prime Cache for a week, a dismissible banner appears once on the plugin’s own screens inviting you to leave a WordPress.org review. It never nags across the rest of the admin, and once you review or dismiss it, it never shows again.

1.10.42

  • Added: an extension point so the optional add-on can replace the “enable drop-in mode” (WP_CACHE) notice with a one-click action. The free plugin still never edits wp-config.php itself — it only shows the manual instructions, and now steps aside cleanly when the add-on offers to do it for you. No change for sites without the add-on.

1.10.41

  • Fixed: with Delay JavaScript enabled, saving settings on any tab re-enabled Mobile Cache and Separate Mobile Cache even after you turned them off. Delay JS no longer forces mobile caching on — it applies to dynamically generated mobile pages too — and only requires Separate Mobile Cache while Mobile Cache itself is on (to keep the mobile-transformed HTML out of the desktop cache). The same over-eager coupling in preset application is fixed.

1.10.40

  • Added: 5-minute video tutorial embedded on the plugin page and linked from the documentation.
  • Improved: the Pro Features page now introduces AI Speed Diagnosis & consultation (BYOK) — measure your environment, get plain-language findings, apply validated fixes in one click, and ask follow-up questions in chat.

1.10.39

  • Improved: dashboard statistics now count cache files written by the preload crawler separately as “Preload” instead of inflating MISS, and preload fetches of already-warm pages are not counted at all — the hit rate now reflects real visitor traffic only. Existing counters are unaffected; use Reset to start fresh.

1.10.38

  • Added: Maximum Delay mode — extends Delay JS to jQuery core and inline scripts. Scripts still execute in document order after user interaction, with DOMContentLoaded/load re-dispatched, so dependency chains keep working. During a PageSpeed lab run almost no JavaScript executes, dropping TBT to near zero. Consent scripts, JSON-LD and your exclusion list are never delayed.
  • Added: “Apply Delay JS on Desktop” option — Delay JS was mobile-only; this opt-in extends it to desktop responses to improve the desktop PageSpeed score as well.
  • Added: nginx direct-serving snippet — a copy-paste server-block configuration (shown in Cache settings) that lets nginx serve cached pages straight from disk without booting PHP, mirroring the .htaccess fast path condition for condition. Includes gzip_static support for the pre-compressed variants.
  • Improved: the Inline Small CSS threshold now also applies to the Pro add-on’s combined stylesheet — when the com
14 Jul 2026Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)