=== Scheduled Cache Clear ===
Contributors: snehalpancholi
Tags: performance, cache, cron, scheduled, automation
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 1.0.0
Requires PHP: 8.1
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Schedule automatic cache clearing on a configurable interval. Supports WP Object Cache, WP Super Cache, W3 Total Cache, WP Rocket, LiteSpeed Cache, and SG Optimizer.

== Description ==

Stale caches can serve outdated content, but manually clearing your cache is easy to forget. Scheduled Cache Clear uses WP-Cron to automatically flush your site's cache on a configurable schedule — hourly, daily, or any custom interval.

**Supported cache integrations:**

* WP Object Cache (`wp_cache_flush`)
* WP Super Cache (`wp_cache_clear_cache`)
* W3 Total Cache (`w3tc_flush_all`)
* WP Rocket (`rocket_clean_domain`)
* LiteSpeed Cache (via `litespeed_purge_all` action)
* SG Optimizer / SiteGround (`sg_cachepress_purge_cache`)

Only installed and active integrations are called. Missing plugins are silently skipped.

**Other features:**

* Status panel showing last run time, what was cleared, and the next scheduled run
* "Clear Cache Now" manual trigger
* Developer action hook `addlc_scc_after_clear` for custom integrations
* Clean uninstall removes the scheduled event

== Installation ==

1. Upload `scheduled-cache-clear` to `/wp-content/plugins/`.
2. Activate the plugin.
3. Go to **Settings → Cache Schedule**.
4. Choose your interval and which caches to clear.
5. Save — the schedule starts immediately.

== Frequently Asked Questions ==

= What if my caching plugin isn't listed? =
Hook into `addlc_scc_after_clear` and call your cache's clearing function there. The hook passes an array of already-cleared cache names.

= Does this work on servers where WP-Cron is disabled? =
If you've set `DISABLE_WP_CRON` and use a real system cron to trigger `wp-cron.php`, yes — this plugin registers a standard WP-Cron event that fires normally under that setup.

== Changelog ==

= 1.0.0 =
* Initial release.
