Incorrect caching for current user with flag relationship

Created on 7 September 2023, about 1 year ago
Updated 16 April 2024, 7 months ago

Problem/Motivation

Hello. When adding a relationship with a flag for the current user, the handler does not provide the correct cache context, and unless other handlers provide the user's context, the cache will be shared by all users.

Proposed resolution

I suggest adding a CacheableDependencyInterface implementation to the relationship handler with a flag in views to provide the correct cache context.

🐛 Bug report
Status

Needs review

Version

4.0

Component

Views integration

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024