Improve caching of the custom processor

Created on 20 March 2025, 16 days ago

Problem/Motivation

I tried to enable caching for my views that uses facets and the module pretty path implementation. In results I got max-age 0 when exporting config.

After deep dive into the caching mechanism for views I found that one of the facet processors is uncacheabe.

The solution is to provide UnchangingCacheableDependencyTrait.

I tested this locally and after resaving views the max-age was -1 which is permanent cache.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine nginex

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

Comments & Activities

  • Issue created by @nginex
  • πŸ‡ΊπŸ‡¦Ukraine nginex

    Unfortunately fork failed during creation, so I could not push or fetch from it (it says repo does not exists)

    Here is a file patch.

Production build 0.71.5 2024