Refresh API cache on update-core screen; add CHANGELOG.md - #16
Merged
Conversation
- Clear cached updates/details API responses on load-update-core.php so a manual "Check again" fetches fresh data (runs before core's check) - Add UpdaterClearApiCacheTest covering both cache keys - Document setMetaCallback() in README with combined setMeta example - Move changelog to CHANGELOG.md with accurate per-version history; link it from the README Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
load-update-core.php(priority 1, before core'swp_update_plugins) to delete the updates/details API response transients, so a manual "Check again" on Dashboard → Updates fetches fresh data instead of serving the 10-minute cacheUpdaterClearApiCacheTestverifies both cache keys are deletedsetMetaCallback()in the README (was missing) with a combinedsetMeta()+setMetaCallback()example, merge semantics, and the Closure-only caveatCHANGELOG.mdwith accurate per-version history reconstructed from git tags; README now links to itTest plan
composer test— 58 tests, 104 assertions pass🤖 Generated with Claude Code