Milyutin Cache Optimizer
WordPress plugin: Advanced page caching, HTML minification, lazy load, WebP, object cache (Redis/Memcached), Cloudflare CDN, and database cleanup.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/milyutinkv-coder/milyutin-cache-optimizer/archive/refs/heads/main.zipAn all-in-one WordPress performance plugin: file-based page caching, safe HTML minification, Lazy Load, WebP conversion, critical CSS, object cache drop-in (Redis/Memcached), cache preloading, Cloudflare CDN integration, and database cleanup.
Author: Konstantin Milyutin · milyutin-codes.ru · VK Group
✨ Features
- ⚡ Page Caching — ultra-fast file-based caching with mobile and logged-in user support.
- 🧹 HTML Minification — safely removes comments and extra whitespace without breaking inline tags or
<pre>blocks. - 🖼️ WebP & Lazy Load — converts images on upload, serves them via
<picture>, and defers off-screen images. - 🔤 JS Optimization — adds
deferor delays external scripts until user interaction (optional). - 🚀 Object Cache Drop-in — supports Redis, Memcached, and Memcache with local runtime fallback and version-based invalidation.
- 🔄 Preload — automatically warms up the cache via WP-Cron after publishing posts.
- ☁️ Cloudflare Integration — purges Cloudflare CDN cache automatically when the local cache is cleared.
- 🗑️ Database Cleanup — scheduled removal of old post revisions, expired transients, and spam comments.
📋 Requirements
- WordPress 6.0 or higher
- PHP 8.0 or higher
- For WebP: Imagick or GD with WebP support
- For Object Cache: Redis, Memcached, or Memcache extension (optional)
🚀 Installation
- Upload the
milyutin-cache-optimizerfolder towp-content/plugins/(or upload a ZIP file via Plugins → Add New → Upload Plugin). - Activate the plugin.
- Go to Milyutin Cache in the admin menu to configure your settings.
- Enable the main switch and fine-tune caching, HTML, images, and server options.
📂 File Structure
milyutin-cache-optimizer/
├── assets/
│ ├── admin.css
│ └── admin.js
├── includes/
│ ├── class-mco-cache.php
│ ├── class-mco-cdn.php
│ ├── class-mco-critical-css.php
│ ├── class-mco-db-cleanup.php
│ ├── class-mco-lazyload.php
│ ├── class-mco-minify.php
│ ├── class-mco-object-cache.php
│ ├── class-mco-preload.php
│ ├── class-mco-settings.php
│ ├── class-mco-site-health.php
│ └── class-mco-webp.php
❓ FAQ Question Answer Does this plugin modify my original images? No. WebP conversion creates a new .webp file next to the original. Originals remain untouched. Do I need Redis or Memcached? No, it's optional. The plugin falls back to a local runtime cache (per-request memory) if no backend is available. Will HTML minification break my inline scripts? No. The plugin protects
, ,