• Resolved johnferz

    (@johnferz)


    Dear All

    Please advice us something. Suddenly we found that pages with hyphen/dash in Url are not cached. So we added some pages in cache directly in plugin settings, and it is working. But we have a lot of pages with hyphen/dash in url, what is this? How to solve it?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @johnferz

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    Yes, I can see in the source the following:
    Page Caching using disk: enhanced (Requested URI is rejected)
    Can you please share which caching method you are using for Page Cache and also what settings do you have enabled in Performance>Page Cache (screenshot of the settings page would be great)
    Can you please confirm that the plugin you are using for those pages is not setting the define('DONOTCACHEPAGE', true); constant for those pages?
    Thank you!

    Thread Starter johnferz

    (@johnferz)

    Thread Starter johnferz

    (@johnferz)

    Also I found file wp-cache-config.php it is from plugin super cache, but it is deactivated, so I renamed this file. And nothing.

    Thread Starter johnferz

    (@johnferz)

    Can you please confirm that the plugin you are using for those pages is not setting the define(‘DONOTCACHEPAGE’, true); constant for those pages?
    Thank you!

    We are using woocommerce, and this is pages from archive-product.php, there are no any define(‘DONOTCACHEPAGE’, true); in files functions.php and archive-product.php. So we can see that some pages in cache, and some pages are not in cache. But when we use this https://yadi.sk/d/DXJBONsX_J9Zdg it is working.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @johnferz

    Thank you for the information. The only thing that can be done in W3 Total Cache to exclude the pages from being cache is by adding them to the “”Never Cache following pages” filed in Performance>Page Cache.
    The other thing that is preventing pages from being cached is if the constant define(‘DONOTCACHEPAGE’, true); is added to the template.
    This being said, and as you can see when you add the pages to the cache exception list, W3 Total Cache does its work as it supposes to.
    Something is blocking those pages from being cached and it’s not W3 Total CacheTry removing those rules from “Never Cache following pages” and see if the issue persists. Also, try to disable other p[lugins and see if one of them is causing this.
    Make sure and double-check that the constant define(‘DONOTCACHEPAGE’, true); is not added to the page template.
    The option Cache exception list: is there exactly for those reasons so you should keep using it until you find out what may be causing this.
    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pages with dash/hyphen in URL’ is closed to new replies.