SOLVED: Bricks Search Filter Cache Always Misses, Duplicated Filter Queries

Browser: Chrome 110
OS: Windows
Video: Cap Recording - 20 November 2026 | Cap Recording

When using a Bricks search query filter for posts, the query is not cached in the WP cache using wp_cache_get() or wp_cache_set(). This results in two runs on the query, when it could’ve just been one.

It looks like the cache group is incorrect between the post search get() and set(), but it is correct for the term and user searches. This is in the Search class in the Bricks files, lines 213 and 228.

Using Query Monitor, I see that two queries are running and both taking the same amount of time, where the second should be much faster (because it is cached).

Hi Jacob,
Welcome to the forum, and thanks for pointing this out. The post-search cache lookup and storage do use different cache groups in Bricks 2.4.6.

Please share a minimal Bricks export containing the search filter and its target query loop, with the search criteria preserved, plus the search term you use. This will let us test the same flow and confirm the duplicate queries.

Hello,

Thank you for your quick reply. Here is a Bricks template export with those things:

Thank you!

Thanks for providing the export. We were able to reproduce the issue and added it to our internal bug tracker. We’ll update this thread once it’s fixed.

We’ve addressed this in Bricks 2.5-rc (release candidate), now available for manual download from your Bricks account.

Please read the changelog entry before testing, and let us know if you experience any issues. Release candidates are not intended for production sites.