Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24957
    Qamar Ul Din Hamza
    Guest

    Hi,

    I just have seen the Q&A on your website for W3 total cache, and I have found that there are few filters or constants those we can use for excluding the pages from the page cache, I have a custom post type which is fully dynamic and load the new content every time, but the issue is that when I enable page cache then it is sticking on the same content.

    Can you guys let me know about the filter hooks or constants those I can use in PHP so that we don’t have to add link of the page when we create new in that custom post type because we have many authors and it is a multi site network, then it is very big issue for us to add links manually.

    Even we can’t exclude it by using the url structure because we are not using any kind of basename for that Custom post type, it’s like pages and posts.

    I will be very thankful to you if you guys provide me any solution for it.

    Thank you.

    Regards,
    Qamar Ul Din Hamza
    Web Developer

    #24965
    Marko
    Guest

    Hello Qamar,
    You can add define(‘DONOTCACHEPAGE’, true); to your template which will prevent the page from being cached.Thanks!

    • This reply was modified 3 years, 9 months ago by Jesse Owens.
    • This reply was modified 3 years, 9 months ago by Jesse Owens.
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Constants or Filters for Excluding Pages from page cache’ is closed to new replies.