Add static caching to LayoutTempstoreRepository

Created on 8 May 2024, 8 months ago
Updated 21 June 2024, 6 months ago

Problem/Motivation

When using Layout Builder and the Layout Builder Advanced Permissions β†’ module, a lot of queries are done to the database in DatabaseStorageExpirable. This is done because all layout and block related actions (links) use the LayoutSectionStorageParamConverter, which uses DatabaseStorageExpirable to fetch the layout from the database.

Steps to reproduce

Install the layout builder module and Layout Builder Advanced Permissions β†’ .
Create a page with multiple layouts and inline blocks.
Observe the number of queries growing.

Proposed resolution

It would be nice to add static caching to <code>LayoutTempstoreRepository, to prevent it from loading the same data from the database multiple times.

Remaining tasks

  1. Write patch
  2. Review
  3. Commit

User interface changes

-

API changes

-

Data model changes

-

Release notes snippet

-

πŸ› Bug report
Status

Fixed

Version

10.3 ✨

Component
Layout builderΒ  β†’

Last updated 1 day ago

Created by

πŸ‡³πŸ‡±Netherlands seanB Netherlands

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