Skip to content

Refresh API cache on update-core screen; add CHANGELOG.md - #16

Merged
shazzad merged 1 commit into
mainfrom
feature/changelog-and-check-again-cache
Jul 21, 2026
Merged

Refresh API cache on update-core screen; add CHANGELOG.md#16
shazzad merged 1 commit into
mainfrom
feature/changelog-and-check-again-cache

Conversation

@shazzad

@shazzad shazzad commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Hook load-update-core.php (priority 1, before core's wp_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 cache
  • New UpdaterClearApiCacheTest verifies both cache keys are deleted
  • Document setMetaCallback() in the README (was missing) with a combined setMeta() + setMetaCallback() example, merge semantics, and the Closure-only caveat
  • Move the changelog into CHANGELOG.md with accurate per-version history reconstructed from git tags; README now links to it

Test plan

  • composer test — 58 tests, 104 assertions pass
  • On a consumer site: publish a release, visit Dashboard → Updates, click "Check again" — update appears without waiting 10 minutes

🤖 Generated with Claude Code

- 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>
@shazzad
shazzad merged commit 1500a2e into main Jul 21, 2026
@shazzad
shazzad deleted the feature/changelog-and-check-again-cache branch July 21, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant