Caching query strings is not possible for parameters containing non-Latin or encoded characters
Describe the bug If a query string contains non-Latin or encoded characters, it cannot be added to the Cache Query Strings feature. WP Rocket sanitizes the query string and does not save it to the configuration file.
To bypass this sanitization, I have created a new helper plugin: WP Rocket | Add Custom Cache Query Strings.
This affects all non-Latin websites that use localized query strings, especially those using product variations with WooCommerce.
To Reproduce Steps to reproduce the behavior:
- Try to add this encoded Query string into the Cache Query String textarea:
attribute_%e9%a1%8f%e8%89%b2 - See the problem and check the WP Rocket config file
Expected behavior We would like the option to add non-Latin or encoded query strings without any further manipulation.
Or maybe allow partial matches rather than exact ones only?
Additional context Slack discussion: https://group-onecom.slack.com/archives/C08EFUGUH5G/p1749473057026469 Ticket: https://secure.helpscout.net/conversation/2962772025/565771/