Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-add the getCacheContexts method to block #328

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

andybroomfield
Copy link
Contributor

@andybroomfield andybroomfield commented May 31, 2024

Fix #327

Part revert #325
Restores the getCacheContexts method as that is what is called each time to determine the cache contexts each time the block is rendered.

@andybroomfield andybroomfield force-pushed the fix/1.x-327-alert-banner-block-cache-contexts branch from 8041e88 to c45add6 Compare May 31, 2024 17:54
Fix #327

Part revert #325
Restores the getCacheContexts method as that is what is called each time
to determine the cache contexts each time the block is rendered.
@andybroomfield andybroomfield force-pushed the fix/1.x-327-alert-banner-block-cache-contexts branch from c45add6 to 869dd13 Compare May 31, 2024 18:16
@andybroomfield andybroomfield changed the title Re-add the getCacheContexts method to localgov alert banner Re-add the getCacheContexts method to block Jun 2, 2024
@rupertj
Copy link
Member

rupertj commented Jun 4, 2024

I've done some manual testing on this and while I couldn't recreate the bug locally, the code in this PR works as expected. (And page cache is on for me, for the record).

I did find another cache bug - if you exclude a path, then view that path, then remove the exclusion, the block doesn't show until the cache is cleared, but that happens with or without this change, so it doesn't need to block this.

@finnlewis finnlewis merged commit 427d5f6 into 1.x Jun 4, 2024
8 checks passed
@finnlewis finnlewis deleted the fix/1.x-327-alert-banner-block-cache-contexts branch June 4, 2024 11:09
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.

[Regression] Alert banners are no longer showing correctly when pages are cached
3 participants