Incorrect caching for current user with flag relationship

Created on 7 September 2023, 10 months ago
Updated 16 April 2024, 2 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

Comments & Activities

Production build 0.69.0 2024