• Resolved tkirtley

    (@tkirtley)


    Hi,

    We have an archive page which we don’t want to be cached. As its an archive we can’t specify a page ID.

    Should we be able to use the following code on the archive.php template to stop the page being cached?

    define('DONOTCACHEPAGE', true);

    I ask, because adding that line of code has not stopped that page from being cached, so am I doing something wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
  • This currently is not possible with the Cache Enabler. What is your use-case that requires you to not want to cache the archive page?

    Thread Starter tkirtley

    (@tkirtley)

    Hey,

    We have a Custom Post Type archive for a section of the site that allows users to search, save and filter the listings according to their address. Therefore currently the archive page can be cached with a particular users search criteria filled in, which isn’t ideal.

    Plugin Author KeyCDN

    (@keycdn)

    The Cache Enabler respects the DONOTCACHEPAGE constant. You might need to double check how you have implemented it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘DONOTCACHEPAGE for archive?’ is closed to new replies.