glossaryaz_widget_order disables facet cache

Created on 24 July 2024, 6 months ago

Problem/Motivation

GlossaryAZWidgetOrderProcessor 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 (it only changes when the facet config changes or when the facet values change).

Steps to reproduce

Enable Sort by custom order 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. (See RawValueWidgetOrderProcessor for example.)

🐛 Bug report
Status

Needs review

Version

4.2

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