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).
Add a facets_block block to a page.
The block is recalculated every time.
Stop using UncacheableDependencyTrait
in FacetsBlock
and implement getCacheMaxAge()
, getCacheTags()
and getCacheContexts()
.
Needs review
2.0
Code