The Search API (tags based) caching in Views cause website to fall down when page that using Facets is opened

Created on 18 July 2023, over 1 year ago
Updated 26 January 2024, 11 months ago

Problem/Motivation

When upgrading the Facets module from 2.0.2 to 2.0.3 and above (up to 3.0.0-beta1) the system hаgs when a page that using Facets is opened.

Steps to reproduce

Environment:

- Drupal core: 9.4.3;
- PHP version 8.1.20.

1. Upgrade Facets module from version 2.0.2 to 2.0.3+;
2. Update database;
3. Export the new configuration;
4. Re-build the cache;
5. Go to page that using Facets.

Proposed resolution

The problem is caused by an infinite loop when `preExecute()` method is called as part of `fillFacetsWithResults()` method in `SearchApiDisplay` class.

When `preExecute()` method is not used, the page responds and the Facets are working properly.

I will create a patch as a temporary solution until the problem is resolved. Any help is highly appreciated!

Thank you in advance!

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇧🇬Bulgaria rastepanyan

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

Comments & Activities

Production build 0.71.5 2024