Skip to content

Conversation

@dkotter
Copy link
Collaborator

@dkotter dkotter commented May 9, 2025

Description of the Change

We have caching around the API request we make to store that for 24 hours (or up to 24 hours to be accurate). We already have a mechanism in place to bypass that cache and this PR takes advantage of that to ensure we always get the most up-to-date data when an API request is made in the admin (in this case, the block editor).

How to test the Change

Ensure the block renders properly in the admin

Changelog Entry

Changed - Always get fresh API data when rendering the block in the editor

Credits

Props @dkotter

Checklist:

@dkotter dkotter added this to the 1.0.0 milestone May 9, 2025
@dkotter dkotter self-assigned this May 9, 2025
@github-actions github-actions bot added the needs:code-review This requires code review. label May 9, 2025
@dkotter dkotter requested a review from faisal-alvi May 9, 2025 16:27
faisal-alvi
faisal-alvi previously approved these changes May 12, 2025
Copy link
Contributor

@faisal-alvi faisal-alvi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Tested it and it works well.

@dkotter dkotter merged commit c77964c into develop May 12, 2025
10 checks passed
@dkotter dkotter deleted the update/admin-cache-clear branch May 12, 2025 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:code-review This requires code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants