The cache context set in BackgroundImageBlock and BackgroundImageTextBlock is set to user permissions only, but you also needs to add the url, otherwise those blocks won't be rendered on individual pages.

We've seen this on one of our sites where we have no global background image but only on two individual entities. We also use big pipe module and that led to scenarios after a cache refresh, if anonymous user visited a node without a background image first, the block got cached not containing any content and that same block got considered when visiting a node with a background image afterwards. Hence, no markup in the html for it.

Comments

jurgenhaas created an issue. See original summary.

jurgenhaas’s picture

Status: Active » Needs review
StatusFileSize
new1 KB
colin.eininger’s picture

I faced the same issue and the patch #2 fixed it. However I do not have enough knowledge about the drupal cache system to know if this solution is correct.

nigelcunningham’s picture

It's better to use the cache tags for the entities that make the cache invalid, together with contexts in which the image might vary (language etc). I'll prepare a version that does that.

nigelcunningham’s picture

Status: Needs review » Fixed

I've made other changes in the area of caching and am seeing changes to background image settings take effect without requiring a cache clear. I'll mark this as fixed but please reopen if you retest and find any issues still exist.

Thanks!

Status: Fixed » Closed (fixed)

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