Why Smart Caching Matters
When a new chapter is released, readers expect to see it instantly on the homepage and series page. If cache invalidation is delayed, the experience feels outdated.
Smart Cache Orchestrator ensures that every cache layer — RAM, fullpage, and CDN — is purged in sync whenever a chapter is added, removed, updated, or scheduled for release.
The result: a blazing-fast website that always stays fresh and accurate.
Works with Cache Plugins — Not Against Them
Instead of replacing powerful and battle-tested cache plugins like W3 Total Cache or LiteSpeed Cache, Init Manga acts as a coordinator. It only operates on the logic layer — where generic cache plugins have no domain awareness — and communicates with them through official APIs. This design allows Init Manga to understand the real context of manga publishing events and guide the cache plugins accordingly.
- RAM Cache: Uses
wp_cache_set()andwp_cache_flush_group()to minimize queries and speed up data-level operations. - Fullpage Cache: Fully compatible with W3TC and LiteSpeed, purging only the affected URLs when necessary.
- Cloudflare CDN: Integrates with Cloudflare’s official API, batching up to 30 URLs per request and including rate-limit protection.
Built-in Support for Multiple Platforms
- W3 Total Cache: Flushes the exact affected post or URL without touching the rest of the cache.
- LiteSpeed Cache: Calls
litespeed_purge_postandlitespeed_purge_urlsafely — even if the plugin is disabled. - Cloudflare: Connects via API Token, handles URL variants automatically (www / non-www, trailing slash or not).
Flexible and Secure Configuration
You can store your Cloudflare credentials directly inside wp-config.php for maximum security. If that’s not possible, Init Manga also provides an admin-panel configuration option.
// Example: Define Cloudflare credentials in wp-config.php
define('INIT_MANGA_CF_ZONE_ID', 'your-zone-id');
define('INIT_MANGA_CF_API_TOKEN', 'your-api-token');
Fully Extensible with Hooks and Filters
Init Manga exposes a unified hook system so developers can integrate their own cache purge logic — for FastCGI, internal proxies, or custom CDN layers.
Available hooks include: init_manga_pre_purge_urls, init_manga_purge_urls, and init_manga_post_purge_urls.
// Example: Add purge support for FastCGI
add_action('init_manga_purge_urls', function($urls, $args) {
foreach ($urls as $url) {
wp_remote_request($url, [
'method' => 'PURGE',
'timeout' => 5,
]);
}
}, 10, 2);
// Example: Log all purge actions in debug mode
add_action('init_manga_post_purge_urls', function($urls, $args) {
if (defined('WP_DEBUG') && WP_DEBUG) {
error_log('[InitManga Cache] Purged: ' . implode(', ', $urls) . ' | Reason: ' . ($args['reason'] ?? 'unknown'));
}
}, 10, 2);
Automatically Handles All Scenarios
Smart Cache Orchestrator listens to more than 10 cache-related events across Init Manga and WordPress:
- New Chapter Published: Purges homepage, series page, and the previous chapter cache.
- Chapter Deleted: Refreshes related metadata and removes old cache entries.
- VIP Unlock Expired: Automatically clears caches when a chapter becomes publicly available.
- Scheduled Release: At the scheduled time, cache is purged and the manga appears instantly on the homepage.
- Manga Updated: Detects recently published or unlocked chapters (within 12 hours) and only purges affected URLs.
Real Benefits for Readers and Publishers
Readers always see the latest content without waiting for manual cache resets. Publishers don’t need to touch any “Flush Cache” button — the system handles everything safely, with event-driven precision. Init Manga works together with existing caching systems instead of overriding them — delivering performance and consistency at the same time.
Conclusion
The Smart Cache Orchestrator is not just another feature — it’s the operational backbone of the new Init Manga platform. It doesn’t rebuild what caching experts have already perfected — it collaborates with them, orchestrating cache layers through domain-aware logic.
Combined with personalization and behavior-based optimizations, Init Manga 1.6.7 takes WordPress manga publishing to a professional, production-ready level.
Comments