Views Caching breaks anonymous Flagging

Created on 26 August 2018, over 6 years ago
Updated 18 February 2025, 2 months ago

Steps to reproduce:

  • Install flag 8.x-4.0-alpha3
  • Create a Flag with Scope set to "Personal"
  • Give anonymous users permission to flag/unflag
  • Create a View with the "Flag link" field
  • In one anonymous session, access the View and Flag an item
  • In another anonymous session, access the View β€” it shows the above item as flagged, but since it was flagged in a different session, it should not show as flagged

By default, the View has Caching set to "Tag based". It would be cool if this could somehow work with the default Views Caching settings β€” is it possible to add the session id to the cache descriptor so each anonymous session has its own cache? Or, if there isn't a practical way to make it work, it could be helpful to show a warning when editing the View that the cache mode is incompatible with Flag.

πŸ› Bug report
Status

Active

Version

4.0

Component

Views integration

Created by

πŸ‡ΊπŸ‡ΈUnited States smokris Athens, Ohio, USA

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.

Production build 0.71.5 2024