Skip to content

temporarily disables query caching IF there any filters for use durin… - #4985

Merged
TomJaeger merged 5 commits into
ExpressionEngine:7.devfrom
mithra62:fix/4984/pro-search-query-cache
Apr 20, 2026
Merged

TomJaeger merged 5 commits into
ExpressionEngine:7.devfrom
mithra62:fix/4984/pro-search-query-cache

Conversation

@eric-lamb62

Copy link
Copy Markdown
Contributor

…g the entry compilation of pro search results

Fixes #4984

just a simple enable / disable flow if channel query caching is enabled AND any filters are to be processed.

…g the entry compilation of pro search results

//enable anew if needed
if($enable_sql_caching != ee()->config->item('enable_sql_caching')) {
ee()->config->config['enable_sql_caching'] = ee()->config->item('changed_enable_sql_caching');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the logic right here? I'm not seeing it set the changed_enable_sql_caching?

Should this actually be set to the $original_sql_caching above.. see comment above

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TomJaeger that's what line 907 is doing. I just named it poorly and, kinda, against logic lol

Will add some sanity to the variable key naming and update :)

@TomJaeger TomJaeger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting this! Makes sense for us to get this in there..

Please see comments above.. wondering if we need a tweak before it merges in?

@eric-lamb62

Copy link
Copy Markdown
Contributor Author

@TomJaeger Will do a sanity run through to make sure it reads logically.

@TomJaeger TomJaeger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noticed a stray ;

TomJaeger
TomJaeger previously approved these changes Dec 4, 2025
@TomJaeger TomJaeger added this to the 7.5.19 milestone Dec 4, 2025
@TomJaeger

Copy link
Copy Markdown
Contributor

@codex please review

@TomJaeger
TomJaeger merged commit 3c3286a into ExpressionEngine:7.dev Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pro Search / Custom Filters / Query Cache

4 participants

Sponsor
SponsoredKunjungi sekarang
Promo