Make block cacheable

Created on 18 April 2023, about 1 year ago
Updated 24 April 2023, about 1 year ago

Problem/Motivation

Since ✨ Add support for "Search API (tags based)" caching in Views Fixed , facets can be cached. So the facets_block block should also be cacheable (and inherit the facets cache parameters).

Steps to reproduce

Add a facets_block block to a page.
The block is recalculated every time.

Proposed resolution

Stop using UncacheableDependencyTrait in FacetsBlock and implement getCacheMaxAge(), getCacheTags() and getCacheContexts().

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France prudloff Lille

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

Comments & Activities

Production build 0.69.0 2024