Layout builder cache not working as intended with many index's

Created on 23 December 2024, about 1 month ago

Problem/Motivation

When there is more than one index present in the Drupal, there will be problems if their configuration isn't the same in their blocks selected from the form.

Steps to reproduce

  1. Create two index's.
  2. Choose diferent blocks to index from the form (IMPORTANT:this is where the problem ocurs).
  3. If you try to reach a block wich is not in one of the two index's selected, you may find yourself that you can't add his fields.

Why does it happen?

Because the actual cache system configured doesn't differentiate between index's.

Proposed resolution

I have created a patch to resolve this by using the index id to cache by index.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇪🇸Spain ViernesDrupal

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

Comments & Activities

Production build 0.71.5 2024