Automattic / Automattic/wp-super-cache
action for full cache purge?
- Dominant language
- PHP
- Stars
- 436
- Forks
- 130
- Avg merge
- 15h 11m
- Merged PRs (30d)
- 10
Description
I had a look around in the code, but I can't seem to find an action I can hook into that fires when the cache was fully purged.
My use case: i want to purge Autoptimize's cache when WPSC's is cleared, but only when WPSC's is entirely purged (else we risk having pages in WPSC that refer to non-existing AO items).
So:
* is such an action available (I might have missed it)
* if not; could it be added (I guess in wp-cache-phase2.php in the wp_cache_clear_cache function, I could whip something up and do a PR)?
frank
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in wp-cache-phase2.php at wp_cache_clear_cache, as identified in the issue, and inspect how the full purge currently completes and which actions are available. The work is done when a hook fires only after the entire WPSC cache has been purged, allowing Autoptimize to clear its cache safely; no test file is mentioned.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100