Pages are uncacheable because of the cache context user

Created on 3 March 2023, over 1 year ago
Updated 22 August 2023, about 1 year ago

For logged in users, every page becomes uncacheble because a cache context is set on user in datalayer_page_attachments.

The comment above that line in code states

 // If we're exposing user data make sure that context is added to the
  // cachability for the page. And, we add this regardless of configuration
  // becasue in datalayer_get_data_from_page() we always add userUid no matter
  // what.

Can we make adding the userUid optional?

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium svdhout

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