All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Proper syntax for speedy_query_cache_allowlist ?

Status Resolved
Add-on / Version Speedy 1.8.1
Severity
EE Version 7.3.12

DSite

Nov 10, 2023

I have a site where I have Speedy set up for static caching. All is working smoothly, except for a page that uses query strings with Pro Form to generate the content. For example:

/page?child:custom_field=example

I would like to cache both the base /page and also the page with the results filtered by query string.

I see that there is a speedy_query_cache_allowlist config that should allow me to do just that. But I can’t seem to get that working.

The documentation doesn’t provide an example of what that config would look like, so it’s very possible that I’m just making a simple mistake in syntax. Here is what I have for the above example:

$config['speedy_query_cache_allowlist'] = ['child:custom_field'];

Should that work? Or do I need to construct that config differently?

Thanks!

#1

BoldMinded (Brian)

That should work. Did you see the comments in the docs?

Query string caching will only work when using the static driver if the requested page is cached without the query string. For example, if the url /products/shirt?size=small is requested by the user and cached, it will not display the cached contents to any user until /products/shirt is also cached.
#2

DSite

Sorry. Got pulled away on another project.

Now that I’m back on this project, the query string caching seems to be working fine. Because of course it is.

I think I’ve got everything set up and running properly. Thanks for developing such a useful plugin!

Login to reply