• Hi, I’d like to know if there is any way to exclude an archive page.
    That page has this link format domainname/year/month

Viewing 6 replies - 1 through 6 (of 6 total)
  • Page Cache > Never cache the following pages:

    year/month

    • This reply was modified 7 years, 9 months ago by Kimberly.
    Thread Starter sangkavr

    (@sangkavr)

    It doesn’t seem to work.
    Any suggestion about any exception directly on the code I want not cached?

    Thread Starter sangkavr

    (@sangkavr)

    The code I don’t want cached is actually in header.php

    Ahh so you want to exclude php code..you can use fragment caching.

    1. wp-config.php: define('W3TC_DYNAMIC_SECURITY', 'myid');
    2. header.php: <!-- mfunc myid-->any PHP code<!-- /mfunc myid -->
    3. General Settings > Page Cache > Disk: Basic

    Thread Starter sangkavr

    (@sangkavr)

    Thanks. I’ll try it.

    Thread Starter sangkavr

    (@sangkavr)

    Hi, I tried fragment caching but it seems it doesn’t work.
    Maybe it works only with pro version, doesn’t it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Exclude archive pages’ is closed to new replies.