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.

CommentFileSizeAuthor
#4 site-alert-cache-2990906-4.patch1.62 KBkbentham
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jwilson3 created an issue. See original summary.

jwilson3’s picture

Note 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.

bmx269’s picture

I am experiencing this issue as well.

kbentham’s picture

Status: Active » Needs review
FileSize
1.62 KB

I have added a cache tag for the block. It should now clear the cache for that block whenever an alert is updated.

cecrs’s picture

Status: Needs review » Fixed

This is fixed in 8.x-1.x

ntaylor1994’s picture

I do not see this patch in 8.x-1.x. I also am having to flush cache to see my timed site alerts

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

jwilson3’s picture

@Cecily, it appears the patch on this issue never got applied or pushed to Drupal.org

ntaylor1994’s picture

I can agree with comment #8. I do not see this patch in the release.

cecrs’s picture

@jwilson3 @ntaylor1994

:facepalm: Yeah my bad - totally didn't include this in the release. It's in dev now.

ntaylor1994’s picture

@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.