[WordPress] 外掛分享: Flexa Cache

首頁外掛目錄 › Flexa Cache
WordPress 外掛 Flexa Cache 的封面圖片
全新外掛
安裝啟用
尚無評分
5 天前
最後更新
問題解決
WordPress 5.9+ PHP 8.2+ v1.0.2 上架:2026-07-11

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Flexa Cache」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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 to preload + onload swap with

Developer-Friendly

WP-CLI: wp flexa-cache clear [--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

Source code for compiled JavaScript and CSS
The plugin ships with a compiled admin UI (assets/dist/). The human-readable source code is publicly available at:
https://github.com/flexatech/flexa-cache

延伸相關外掛

文章
Filter
Mastodon