FlynCache Purge

By Wasim Akram

★ 5.0/5 (1 ratings)0+ active installationsVersion 1.1.4

Auto-detect and purge Nginx FastCGI, Redis, LiteSpeed, Cloudflare & CDN caches from one unified interface.

Description

FlynCache Purge is a professional, lightweight WordPress plugin that automatically detects your server’s cache configuration and intelligently manages cache purging across multiple cache layers. Whether you’re running Nginx with FastCGI Cache, Redis Object Cache, LiteSpeed server cache, Cloudflare CDN, or any other CDN — FlynCache Purge handles it all from one unified interface.

🚀 Key Features:

  • Auto Server Detection — Automatically detects your web server (Nginx, Apache, LiteSpeed, OpenLiteSpeed) and available cache systems
  • Auto Cache Path Detection — Scans your server for Nginx FastCGI cache directories and Redis connections automatically
  • Nginx FastCGI Cache Purge — Purges Nginx FastCGI cache by file removal, supporting multiple directory structures (Webinoly, EasyEngine, ServerPilot, and custom configs)
  • Redis Object Cache Purge — Connects to Redis via phpredis extension for full database flush or selective key purge
  • LiteSpeed Cache Purge — Integrates with LSCWP plugin API, LiteSpeed purge headers, and filesystem-based cache clearing
  • Cloudflare Cache Purge — Uses Cloudflare API v4 to purge entire zones or specific URLs with chunked request support
  • Custom CDN Support — Compatible with KeyCDN, StackPath, BunnyCDN, Fastly, Sucuri, CloudFront, and any CDN with HTTP purge API
  • Smart Auto-Purge — Automatically purges cache on: post publish/update/delete, new comments, theme switches, plugin changes, widget updates, customizer saves, nav menu changes, and more
  • Related URL Purge — When a post is updated, also purges category, tag, author, archive, feed, and date archive pages
  • Manual Purge — One-click purge all caches or purge specific URLs manually
  • Recommended Settings — Plugin analyzes your server and suggests optimal configuration
  • Connection Testing — Built-in test buttons for Redis and Cloudflare connectivity
  • Export/Import Settings — Backup and restore your configuration
  • Lightweight & Fast — Minimal footprint, only loads what’s needed, zero frontend impact
  • WP-CLI Support — Purge cache from the command line with wp flyncache purge-all, wp flyncache purge-url, wp flyncache status, and wp flyncache detect commands
  • Admin Toolbar Quick Purge — One-click purge button in the WordPress admin bar for instant cache clearing from any page
  • WooCommerce Auto-Purge — Automatically purges product, shop, cart, and checkout page caches on product updates, stock changes, price changes, coupon updates, and order status changes

External Services

This plugin optionally connects to the following external services. These services are only used when you explicitly enable and configure them in the plugin settings. No data is sent unless you opt in.

Cloudflare API v4

This service is used to purge Cloudflare CDN cache when you enable the Cloudflare cache purge feature. It is needed to send cache purge requests for your Cloudflare zones.

  • What data is sent: Your Cloudflare API token and Zone ID (stored in your WordPress database) are used to authenticate purge requests. No user data or content data is transmitted.
  • When data is sent: Only when you manually purge cache or when auto-purge triggers and Cloudflare is enabled.
  • Where data is sent: https://api.cloudflare.com/client/v4/
  • Terms of Service: https://www.cloudflare.com/terms/
  • Privacy Policy: https://www.cloudflare.com/privacypolicy/

LiteSpeed Admin API (optional)

If configured, the plugin can send purge requests to a LiteSpeed Admin API endpoint. This is entirely optional and only used if you provide the Admin URL and API key in settings.

Why FlynCache Purge?

Managing cache across multiple layers (server cache, object cache, CDN cache) is complex. Each cache has its own purge method, API, and configuration. FlynCache Purge unifies all cache management into a single, intelligent interface that auto-detects your setup and handles purging automatically — so you never have to worry about stale content again.

Supported Cache Types

  • Nginx FastCGI Cache — File-based cache used by Nginx with PHP-FPM (supports Webinoly, EasyEngine, ServerPilot, and custom configs)
  • Redis Object Cache — Via phpredis extension, supports host/port/unix socket, authentication, and database selection
  • LiteSpeed Cache — Server-level cache + LSCWP plugin integration
  • Cloudflare CDN — API token-based cache purge with zone support
  • Custom CDN — Any CDN with HTTP purge API (KeyCDN, StackPath, BunnyCDN, Fastly, etc.)

Reviews

If you find FlynCache Purge helpful, please leave a review on WordPress.org. Your support motivates continued development!

Support

Installation

  1. Upload the plugin folder to /wp-content/plugins/ or install via WordPress plugin installer
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Settings → FlynCache Purge to configure cache settings
  4. The plugin will auto-detect your server and available caches
  5. Review the recommendations and enable the caches you want to manage
  6. Auto-purge starts working immediately — publish or update a post to test!

FAQ

Which cache types are supported?

FlynCache Purge supports Nginx FastCGI Cache, Redis Object Cache (via phpredis), LiteSpeed Cache (server + LSCWP), Cloudflare CDN, and any custom CDN with an HTTP purge API.

Does the plugin auto-detect my server?

Yes! It automatically detects your web server type (Nginx, Apache, LiteSpeed), scans for cache directories, checks for Redis connectivity, and identifies active cache plugins. It also reads Nginx configuration files to find cache paths. Webinoly and EasyEngine paths are auto-detected.

Is this plugin lightweight?

Absolutely. It only loads admin components when you’re on the settings page. Frontend impact is zero. The auto-purge system uses native WordPress hooks and is highly optimized.

Can I purge cache for specific URLs?

Yes! Use the Manual Purge tab to enter specific URLs (one per line) and purge cache only for those pages. You can also use the Quick Purge buttons for Homepage, Admin, and RSS Feed.

How does auto-purge work?

When you publish/update/delete a post, add a comment, switch themes, update plugins, or change widgets, the plugin automatically purges the relevant cache entries. It can also purge related pages (categories, tags, archives, feeds) for comprehensive cache invalidation.

Does it work with Cloudflare?

Yes! You need to create a Cloudflare API Token with Cache Purge permission and your Zone ID. The plugin uses the Cloudflare API v4 to purge cache. It supports both full zone purge and selective URL purge (in chunks of 30 URLs per request). See the “External Services” section above for Cloudflare terms and privacy information.

Can I use it with Redis Object Cache plugin?

Yes! It works alongside Redis Object Cache plugins. It connects directly to Redis via the phpredis extension to flush the database or remove specific keys.

Screenshots

Changelog

1.1.4

  • FIX: Purge result ab success par sirf ek single line dikhata hai — pehle status line ke neeche har cache engine ki alag-alag detail lines (fastcgi, cloudflare, etc.) bhi print ho rahi thi, jisse total 3 lines dikh rahi thi
  • IMPROVE: Per-engine detail lines ab sirf tab dikhti hain jab purge fail ho (debugging ke liye) — clean one-line success message

1.1.3

  • FIX: URL-specific FastCGI purge now actually works with the default Nginx cache key ($scheme$request_method$host$request_uri) — cache files are matched by their stored KEY header instead of a guessed hash path
  • FIX: URL purge no longer reports false “success” when nothing was purged — now reports an honest “skipped” status
  • FIX: Multi-URL purge in the admin (Purge URLs box) was broken — sanitize_text_field() stripped line breaks before URLs were split; URLs are now split first and sanitized individually
  • NEW: Cloudflare Global API Key authentication (Email + Global API Key) is now supported alongside API Tokens — auth mode is auto-detected
  • NEW: Email + Global API Key fields added to the Cloudflare settings tab
  • FIX: WP-CLI no longer prints “error” for engines that are legitimately skipped
  • IMPROVE: FastCGI cache detection also scans /etc/nginx/sites-enabled/* and /etc/nginx/conf.d/*.conf for fastcgi_cache_path

1.1.2

  • NEW: Smart purge results — cache engines that are not in use now show as “Skipped” instead of “Failed”
  • NEW: Per-engine purge result lines in admin and admin-bar with success / skipped / failed icons
  • FIX: Accurate overall purge status (no more false “All caches purged successfully!” when an engine fails)

1.1.1

  • Compatibility: Tested up to WordPress 7.1 (verified with 7.0 and 7.1)
  • Fixed: Broken support/documentation links in the readme

1.1.0

  • NEW: WP-CLI commands — wp flyncache purge-all, wp flyncache purge-url, wp flyncache status, wp flyncache detect
  • NEW: Admin toolbar quick purge button — one-click cache clearing from any admin page
  • NEW: WooCommerce integration — auto-purge on product updates, stock changes, price changes, cart changes, coupon updates, and order status changes

1.0.0

  • Initial release
  • Auto server and cache detection
  • Nginx FastCGI Cache purge
  • Redis Object Cache purge
  • LiteSpeed Cache purge
  • Cloudflare CDN cache purge
  • Custom CDN cache purge
  • Smart auto-purge on WordPress events
  • Related URL purging (categories, tags, archives, feeds)
  • Manual purge (all + specific URLs)
  • Connection testing (Redis, Cloudflare)
  • Export/Import settings
  • Professional admin interface with modern UI
  • Buy Me a Coffee integration
  • Review request system