Add the current preloaded url to the rocket_preload_exclude_urls
filter to make it easier for defining exclusions
#6001
Labels
Milestone
Is your feature request related to a problem? Please describe.
The case is that we need an easy and performant way to exclude all urls except some urls and now we have this filter rocket_preload_exclude_urls
so it'd be easier to pass the current url to this filter to be like that
so we can easily hook and compare the current url with the list of urls not to depend on the request url as this is not working properly in some cases like when called from CRON/AS.
Additional context
https://wp-media.slack.com/archives/C43T1AYMQ/p1686167812003059
and the ticket:
https://secure.helpscout.net/conversation/2266082107/423673?folderId=377611
The text was updated successfully, but these errors were encountered: