Home Forums WoodMart support forum Woodmart excludes all pages from wp Rockets cache

Woodmart excludes all pages from wp Rockets cache

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #436154

    office-7631
    Participant

    i have a problem with woodmart and wp-rocket.
    According to WP-Rocket support, the following bug needs to be fixed:

    Woodmart has an issue that excludes all the pages from WP Rocket’s cache, and unfortunately, this can’t be fixed by us, since this is an error in the code of Woodmart.

    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.

    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.

    Image

    I’m happy to hear from you

    #436192

    Artem Temos
    Keymaster

    Hello,

    Thank you so much for purchasing our theme and contacting our support center.

    You can fix it by applying patch # 420877. To do this, go to Dashboard -> WoodMart -> Patcher, find the corresponding patch and click on the “Apply” button. Let us know if it works for you.

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)