Cache Management
Mimicry includes a high-performance caching layer designed to reduce server load and deliver lightning-fast page speeds.
Caching Drivers
You can choose between two primary drivers depending on your server environment and performance needs:
database
Redis (Production)
The fastest option. Stores cache in-memory for microsecond retrieval. Ideal for high-traffic sites.
Recommended
folder_zip
Simple (File-based)
Zero-configuration caching that stores responses as JSON files in storage/cache.
Fallback
How It Works
Mimicry uses an intelligent Cache Middleware that automatically handles the lifecycle of your pages:
- Automatic Storage: Successfully rendered (HTTP 200) HTML pages are cached for future requests.
- Smart Expiry: Each entry has a configurable TTL (Time-To-Live). Once expired, the page is re-generated on the next visit.
- Auto-Purge: When you update an article or theme, Mimicry automatically clears relevant cache patterns (like the homepage and category lists) to ensure content remains fresh.
Dashboard Controls
Cache Settings
timer
TTL Configuration
Set how many hours a page should stay in the cache before being re-fetched.
broom
Manual Purge
A one-click button in the settings to clear ALL cached data immediately.
Note: Admin routes, dynamic API endpoints, and the setup wizard are always excluded from the cache to ensure core functionality remains real-time.