Make facet cacheable

Created on 18 April 2023, over 1 year ago
Updated 17 January 2024, 10 months ago

Problem/Motivation

Currently, the facet always has a max-age of 0.
Depending on your use case, it can make sense to cache the facet for some time.

Our use case is that we want to return new content published in the last X days. This information changes every day so we can totally cache the facet for several hours.

Steps to reproduce

Create a facet using RelativeDateItemProcessor.
The facet is recalculated every time.

Proposed resolution

Add a setting allowing to the set a custom max-age.

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇫🇷France prudloff Lille

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