make_first_facet_active disables facet cache

Created on 24 July 2024, 9 months ago

Problem/Motivation

ActiveByDefaultProcessor extends ProcessorPluginBase which uses the UncacheableDependencyTrait trait.
So using this processor on a facet makes the facet uncacheable.
However there is no reason the result of this processor could not be cached (if all sort processors are cacheable).

Steps to reproduce

Enable Make first facet active on a facet.
Save the view display using this facet again : the view display now has this config:

    cache_metadata:
      max-age: 0

Proposed resolution

The processor should use the UnchangingCacheableDependencyTrait trait.

🐛 Bug report
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