• Resolved scooterlord

    (@scooterlord)


    Hello and thanks for the wonderful plugin!

    this might be a dumb question, but I haven’t been able to exclude a page from being cached. I want to exclude the file ‘page-users.php’. I went to Page cache > Never cache the following pages and tried adding a regexp based on the example on the FAQ.

    Following the example on the website it should be */users but this gives a regexp error, so I replaced it with:

    page-users\.php

    I also addded define('DONOTCACHEPAGE', true); inside the file page-users.php. For some reason the debugging is also not working so I can’t really validate if it works properly or not. Some examples on the website would be nice!

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

    (@vmarko)

    Hello @scooterlord

    Thank you for your inquiry and I am happy to assist you with this.
    If you have a specific page of your website you wish to exclude from caching, you can add it to Performance>Page Cache>Advanced>Never Cache following Pages.
    SO for example if the page you wish to exclude is https://ourwebsite.com/users/
    You simply need to add /users/ to Never Cache following Pages filed.
    define('DONOTCACHEPAGE', true); if added to a specific template it will ensure that it’s not cached also.
    I hope this helps!
    Thanks!

    Thread Starter scooterlord

    (@scooterlord)

    Hello,

    Marko, thank you for your answer. While testing yesterday, everything seems to be working fine now – you just validated what I was doing, which is still a great help!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @scooterlord

    You are most welcome!

    We would really appreciate it if you could take a minute and post a review?here. This will help us to continue offering a top-notch product to users.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable caching for a specific page’ is closed to new replies.