Blindly enabling generic WordPress cache toggles often breaks dynamic WooCommerce carts, leaves stale CSS behind CDN proxies, or overwrites original JPEG and PNG files during WebP conversion. Worst of all, running two overlapping page cache plugins silently corrupts HTTP headers.
MTCache solves these failures with a Server-Adaptive four-layer architecture: L0 OpenLiteSpeed rewrite rules, L1 PHP disk HTML caching, L2 Redis object/fragment caching, and L3 dual-extension WebP Source-of-Truth media optimization built for Core Web Vitals and GEO /llms.txt.
MTCache is tuned natively for the PolyThemes Fast WordPress FSE Ecosystem and pairs cleanly with high-volume stores.
| Cache Tier | Execution Engine | Core Responsibility |
|---|---|---|
| L0: OpenLiteSpeed | ServerDetector + HtaccessManager | Server-level edge cache & tracking query stripping |
| L1: PHP Disk HTML | EarlyDropin (advanced-cache.php) + PageCache | Atomic Gzip/ETag HTML serving with BypassDetector |
| L2: Redis / Memory | FragmentCache + RAM object backends | Caches dynamic fragments, OPcache, and Redis hits |
| L3: WebP & CWV | WebpConverter + AssetOptimizer | Immutable .jpg.webp/.png.webp SOT + HTML minify |
1. Activate Server-Adaptive L0 OpenLiteSpeed, L1 PHP, and L2 Redis
On startup, ServerDetector inspects your web server software, Cloudflare CDN headers, PHP OPcache, Redis, APCu, and Memcached extensions. If OpenLiteSpeed or LiteSpeed Enterprise is detected, MTCache synchronizes L0 .htaccess rules automatically; otherwise it falls back cleanly to L1 PHP advanced-cache.php atomic disk HTML caching and L2 Redis fragment acceleration. If another active cache plugin is already running, ConflictDetector puts MTCache into safe X-MTCache-Status: STANDBY mode instead of breaking output buffers.
- Inspect MTCache > Server Profile to verify detected OpenLiteSpeed, Redis, and OPcache capabilities before turning on full-page caching.
- Confirm
BypassDetectorskips logged-in users, WooCommerce checkout/cart cookies, and REST authorization headers automatically. - Enable marketing query-string stripping (
fbclid,gclid,utm_*) so ad clicks hit warm cache keys instead of forcing uncached PHP renders.
2. Run L3 Dual-Extension WebP SOT and CWV Optimization
MTCache’s L3 layer converts media locally via GD or Imagick without paid external APIs while keeping every original JPEG and PNG untouched as the immutable Source of Truth (SOT). Sibling files use dual extensions (image.jpg.webp and image.png.webp) processed through keyset-paginated WP-Cron queues with memory guards, Pause/Resume, and one-click Purge. Combined with HtmlMinifier and GeoCacheBridge, your site achieves faster LCP while keeping WordPress SEO, GEO & AIO /llms.txt payloads fast, even on 1M+ SKU PolyBlocks catalogs.
- Launch the background WebP batch queue from MTCache > Media; already converted up-to-date images are skipped automatically.
- Verify dual-extension rewrite rules or HTML picture/URL delivery in browser DevTools Network tab (
image/webpresponse type). - Use HeaderOptimizer and Preloader after deployments to warm critical landing pages and validate sub-second TTFB.
Common Pitfalls and Quick Fixes
- Response header shows X-MTCache-Status: STANDBY: Another page cache plugin (such as LiteSpeed Cache or WP Rocket) is active; deactivate the competing plugin to let MTCache own L0/L1.
- Old WebP files remain after deleting an image theme: Use MTCache Media Purge to remove generated
.webpsiblings safely without touching original JPEG/PNG files. - Personalized header menu caches for guests: Wrap user-specific blocks via
FragmentCacheor confirm session cookies are registered inBypassDetector.
Frequently Asked Questions
How does MTCache protect original JPEG and PNG uploads during WebP conversion?
MTCache treats every original JPEG and PNG upload as an immutable Source of Truth. Instead of overwriting or deleting originals, WebpConverter generates dual-extension sibling files (.jpg.webp and .png.webp) locally via GD or Imagick, so you can purge or re-encode WebP copies anytime safely.
What happens if MTCache is installed alongside another caching plugin?
MTCache includes a built-in ConflictDetector that scans for competing page cache plugins before modifying output buffers. Whenever an active conflict exists, MTCache automatically enters safe STANDBY mode and outputs an X-MTCache-Status: STANDBY response header, preventing broken HTML or double compression.
Does MTCache require OpenLiteSpeed or Redis to function?
No. ServerDetector adapts automatically to your hosting stack. When OpenLiteSpeed and Redis are available, MTCache activates L0 server caching and L2 RAM acceleration; on standard Apache or Nginx VPS plans, L1 PHP disk HTML caching and L3 WebP optimization still deliver strong CWV gains.
Does WebP batch conversion overload shared hosting CPU or memory?
No. WebpConverter processes media libraries using keyset pagination, explicit execution time and memory budget guards, and a scheduled five-minute WP-Cron background queue with Pause and Resume controls, preventing PHP worker timeouts even on large WooCommerce stores with thousands of product images.

Leave a Reply