Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In Drupal 8 version of Site Alert, after creating/enabling a site alert banner, you have to clear site cache before the banner is visible to anonymous users.
The module should somehow either bypass caching or trigger a cache clear for site alert activation/deactivation in the eventuality that someone other than an Administrator might have to activate the site alert and won't have access to clear the cache manually.
Comment | File | Size | Author |
---|---|---|---|
#4 | site-alert-cache-2990906-4.patch | 1.62 KB | kbentham |
Comments
Comment #2
jwilson3Note this may be related or similar to the Drupal 7 issue #2941784: Site Alert uses default block cache by role however I think the solution may be different for D8, which is why I've created this as a separate issue.
Comment #3
bmx269 CreditAttribution: bmx269 commentedI am experiencing this issue as well.
Comment #4
kbentham CreditAttribution: kbentham at Palantir.net commentedI have added a cache tag for the block. It should now clear the cache for that block whenever an alert is updated.
Comment #5
cecrs CreditAttribution: cecrs at roomify - online and open source reservation solutions commentedThis is fixed in 8.x-1.x
Comment #6
ntaylor1994 CreditAttribution: ntaylor1994 commentedI do not see this patch in 8.x-1.x. I also am having to flush cache to see my timed site alerts
Comment #8
jwilson3@Cecily, it appears the patch on this issue never got applied or pushed to Drupal.org
Comment #9
ntaylor1994 CreditAttribution: ntaylor1994 commentedI can agree with comment #8. I do not see this patch in the release.
Comment #10
cecrs CreditAttribution: cecrs at roomify - online and open source reservation solutions commented@jwilson3 @ntaylor1994
:facepalm: Yeah my bad - totally didn't include this in the release. It's in dev now.
Comment #11
ntaylor1994 CreditAttribution: ntaylor1994 commented@cecrs Can I get a date when the new release is expected please? With the current pandemic my company is relying on this module pretty heavily.