內容簡介
QuantumCache 透過快取資料庫查詢結果(非整頁快取)來加速 WordPress 網站,減少資料庫負載並維持正確的快取失效機制,支援 Redis 與 MySQL 兩種儲存模式,可與現有的頁面快取方案並行使用。
【主要功能】
• 快取前台 WP_Query 主查詢結果,大幅降低資料庫查詢次數
• 標籤式快取失效:可依文章 ID、文章類型或分類法清除快取
• 片段快取支援 the_content 及多種核心區塊
• 提供 Auto、Redis、MySQL 三種儲存模式自動切換
• 支援多站網路,各子站獨立前綴與資料表
• 可開啟 X-QC 除錯標頭,即時查看快取狀態
外掛標籤
開發者團隊
原文外掛簡介
QuantumCache speeds up WordPress by caching database query results (not full pages). It integrates with WordPress query execution to cache post ID lists and content fragments that WordPress uses to build pages, reducing database load while preserving correct invalidation.
It is not an output buffer or page cache, and it does not replace existing page caching solutions.
Features
Caches the results of the main front-end WP_Query for anonymous requests.
Tag-based invalidation: purge by post ID, post type, or taxonomy.
Fragment caching for the_content (classic) and core blocks such as core/post-content, core/latest-posts, core/archives, and core/navigation.
Multiple storage modes:
Auto – use Redis if available, otherwise fall back to MySQL.
Redis – fastest mode; uses the PHP Redis extension.
MySQL – portable fallback using compact tables (qc_entries, qc_tagmap).
Compatible with the Redis Object Cache drop-in.
Avoids wp_options and postmeta storage – all cache data is stored in Redis or
QuantumCache-owned database tables.
Multisite-aware: per-site prefixes and per-site tables.
Performance summary
In benchmarks on a plugin-heavy WordPress site (WooCommerce + Yoast SEO),
QuantumCache reduced per-request database queries by ~99% on cached pages
and achieved cache hit rates exceeding 97% with Redis.
Under production-like load with a networked database, Redis mode delivered
13–18% lower TTFB at both median and 95th percentile versus uncached
baseline. MySQL fallback mode delivered 4–8% improvement under the same
conditions.
Actual results depend on theme, plugins, database topology, and traffic
patterns.
Debug headers (optional)
Enable Settings → QuantumCache → Send X-QC debug headers to view cache status in HTTP responses:
* X-QC-Main: HIT | MISS | STORE
* X-QC-Store: AUTO | redis | mysql
* X-QC-Hydrated: number of posts loaded from cache
Append ?qc_nocache=1 to any URL to bypass caching for that request.
Debug headers are sent only when explicitly enabled in settings and contain no
personal or user-specific data.
Privacy
QuantumCache does not collect, send, or log personal data.
It stores cache entries in Redis or its own MySQL tables.
Other plugins on your site may handle cookies or data independently.
No remote requests are made, and no data is transmitted to external servers.
