BACK TO DIRECTORY

Flexa Cache

by FlexaTech

0.0
(0 ratings)

Flexa Cache is a full-featured WordPress page-cache and front-end optimization plugin. It installs a self-contained advanced-cache.php drop-in that serves compressed static HTML files before WordPress even loads — the same technique used by WP Fastest Cache and W3 Total Cache — giving you maximum TTFB improvement on both Apache and nginx hosts.

Page Cache

  • Static HTML cache served by a pre-WordPress drop-in (no PHP/MySQL on cache hits)
  • Gzip pre-compressed .gz files served natively
  • Separate mobile cache variant (index-mobile.html) when Mobile Theme is enabled
  • Smart invalidation: purge on new post, updated post, comments, theme/menu/widget changes, and WooCommerce product/stock updates
  • Per-URL cache purge from the admin UI, WP-CLI, or REST API
  • Cache preloader via Action Scheduler (or WP-Cron fallback) with start/cancel/status controls
  • Widget output cache with O(1) versioned-key invalidation

Front-End Optimization

  • Minify HTML (whitespace collapse) and Minify HTML Plus (inline CSS/JS trim)
  • Minify CSS and Minify CSS Plus (deeper punctuation squeeze)
  • Combine CSS — adjacency-only buffer fusion preserving cascade order
  • Combine JS / Combine JS Plus — concatenate header and footer scripts
  • Gzip — mod_deflate .htaccess block for dynamic (non-cached) responses
  • Browser Caching — Expires/Cache-Control .htaccess block
  • Disable Emojis — remove WordPress emoji scripts, styles, and DNS prefetch
  • Lazy Load — native loading="lazy" + decoding="async" on images and iframes
  • Render Blocking JS — add defer to render-blocking scripts
  • Google Fonts Async — rewrite Google Fonts <link> to preload + onload swap with <noscript> fallback
  • Delay JS — neutralise non-critical external scripts until first user interaction or 7-second idle fallback

Developer-Friendly

  • WP-CLI: wp flexa-cache clear [--url=<url>], wp flexa-cache status, wp flexa-cache preload [start|status|cancel]
  • REST API: /flexa-cache/v1/cache/purge, /cache/stats, /cache/preload
  • Filterable hooks: flexa_cache/engine/is_cacheable, flexa_cache/engine/buffer, flexa_cache/store/dir, flexa_cache/purged, flexa_cache/settings/languages, and more
  • Kill switch: ?flexa_cache_optimize=0 disables optimization for a single admin request
  • Exclusion lists for URLs, cookies, user agents, CSS handles, and JS handles

Object Cache (Redis)

  • Persistent Redis object cache: caches WordPress options, transients, and post/term/user meta and query results across requests, cutting database load
  • Installs a self-contained object-cache.php drop-in with an in-memory L1 + Redis L2 layout
  • One-click enable/disable and a “Test & save connection” form that writes the config to wp-config.php (secrets never touch the database)
  • Crash-safe by design: if Redis becomes unreachable the site keeps running (degrades to in-memory) with an admin notice and a circuit breaker — never a white screen
  • Serializers (PHP, igbinary, JSON, msgpack) and compression (LZ4, Zstd, LZF), key prefetch, and alloptions splitting
  • Live analytics: hit-ratio / operations / memory charts, a per-group key table, Query Monitor panel, and WP-CLI (analytics, watch, groups, slowlog)
  • Multisite aware, with per-site and network flush scopes
  • Advanced Redis topologies — Cluster, Sentinel, Replicated (master/replica), and the Relay/Predis clients — are available through the separate Flexa Cache Pro add-on

Source code for compiled JavaScript and CSS

The plugin ships a compiled admin UI in assets/dist/. The human-readable
source (apps/admin/src) and the build tooling are publicly available at:

https://github.com/flexatech/flexa-cache

The admin UI is built with npm and Vite:

  1. npm install
  2. npm run build (or npm run dev for a watched dev build with HMR)

Screenshots

General settings — enable caching, preload the cache by crawling the site, widget cache, a separate mobile copy, and the admin language.

General settings — enable caching, preload the cache by crawling the site, widget cache, a separate mobile copy, and the admin language.

Exclusions — skip the cache for logged-in users or mobile, plus one-per-line lists of excluded URLs, user agents, and cookies.

Exclusions — skip the cache for logged-in users or mobile, plus one-per-line lists of excluded URLs, user agents, and cookies.

Cache invalidation — automatically purge the cache when a post or page is published or updated.

Cache invalidation — automatically purge the cache when a post or page is published or updated.

Minify &amp; Combine — minify HTML, CSS, and JS (with aggressive modes) and combine stylesheets and scripts to cut HTTP requests.

Minify & Combine — minify HTML, CSS, and JS (with aggressive modes) and combine stylesheets and scripts to cut HTTP requests.

Performance — gzip compression, browser caching, disable emojis, eliminate render-blocking JS, async Google Fonts, lazy load images, and delay JS execution.

Performance — gzip compression, browser caching, disable emojis, eliminate render-blocking JS, async Google Fonts, lazy load images, and delay JS execution.

Cache status — cached file count and size, last-cleared time, drop-in state, clear a single URL, purge everything, and preload on demand.

Cache status — cached file count and size, last-cleared time, drop-in state, clear a single URL, purge everything, and preload on demand.

Object Cache (Redis) — connection status, live metrics (hit ratio, hits, misses, memory), and hit-ratio / operations / memory analytics.

Object Cache (Redis) — connection status, live metrics (hit ratio, hits, misses, memory), and hit-ratio / operations / memory analytics.

Plugin Details

Active Installs
0
Total Downloads
340
Version
1.2.0
Requires WP
5.9
Requires PHP
8.2
Tested Up To
7.1
Added
2026-07-12
Last Updated
2026-09-04 2:47am GMT

Ratings

5
0
4
0
3
0
2
0
1
0