Sections page cache not cleared when new section added

Created on 24 September 2020, about 4 years ago
Updated 6 February 2023, almost 2 years ago

Problem/Motivation

When using a taxonomy access scheme, if I add a new taxonomy term to the vocabulary the scheme is associated with, the new term does not show on the Sections page until I clear cache.

Steps to reproduce

1) Setup a taxonomy scheme and add some terms
2) Visit the sections page (prime the cache)
3) Add a new term
4) Refresh the sections page
5) Notice the new term doesn't show up

Proposed resolution

Use $access_scheme->entityType() to load the entity type and add cacheable metadata for the entity type's list cache tag to the controller.

Remaining tasks

- Tests
- Code

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

🇦🇺Australia acbramley

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia fenstrat Australia

    I've done some more testing on this in the original use case that triggered the solution from #2 and can't replicate it. @acbramley also mentioned this could actually have been due to a redis bug as well. So all good to leave this closed, marking as such.

Production build 0.71.5 2024