This is happening because in the Buffer\Tests::can_process_uri() method, we are doing a match against the full request path including the query string, but the pattern uses the $ token to match end of line, so it's never matching against the excluded paths in the pattern.
Scope a solution ✅
Instead of using get_clean_request_uri() as the subject in which to match, we can use get_request_uri_base(), which doesn't contain the query string.
Before submitting an issue please check that you’ve completed the following steps:
3.10.8Describe the bug
When a query string is set to be cached, it will be cached on pages excluded from caching as well.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Page exclusions should be applied to query strings cache as well.
Screenshots
N/A
Additional context
N/A
Backlog Grooming (for WP Media dev team use only)
The text was updated successfully, but these errors were encountered: