Hello,
I’ve just contacted WP Rocket support because my page couldn’t be cached and they told me to contact you with the following issue. Somehow, the 7.0.4 version breaks compatibility with WP Rocket.
Can you please help me resolve my issue?
Email from WP Rocket Below:
Thank you for your patience.
The Woodmart theme is incorrectly adding a (.*) to our exclusions filter.
And this excludes all the URLs from caching,
You should report it to their support team, so they can fix it.
In the meantime, I have installed a helper plugin WP Rocket | Remove url exclusions that will allow WP Rocket to cache the pages.
After the helper is installed, you will need to deactivate and reactivate WP Rocket so the configuration files are rewritten,
Why is this happening?
On Woodmart version 7.0.4, this is happening in their WP Rocket compatibility file, which can be found here:
/wp-content/themes/woodmart/inc/integrations/rocket.php
They are adding the exclusion on line 95, with the woodmart_rejected_uri_exclusions()
function, which is hooked to our rocket_cache_reject_uri filter.
The function ends up adding a (.*) to our exclusions.
They will need to review the code and prevent an empty line from appearing in the $uris array.
I think this way, the (.*) won’t be added to our exclusions.
Attachments:
You must be
logged in to view attached files.