• Resolved FlixWatch Support

    (@flixwatchsupport)


    If my site content changes by 5% on daily basis (existing content), what should be my the Cache TTL? Not all pages are changing but some are. Can it be set for different post types?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    hmmmm , no , can’t set different TTL per post type

    but what exactly is it you want to do ?

    I don’t understand the relation between 5% pages changes and TTL

    once your page is changed, it will purge the cache , you don’t need to bother with TTL

    Best regards,

    Thread Starter FlixWatch Support

    (@flixwatchsupport)

    The issue is AMP Cache uses Max Age as the criterion for keeping cache. Even if I purge it on the site, the AMP Cache will follow the Max Age rule. And updating the AMP cache is a bit complicated.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    what AMP Cache ?

    which max-age you talk about ?

    LiteSpeed’s own max-age should not affect anything else than LiteSpeed Cache itself.

    Best regards,

    Thread Starter FlixWatch Support

    (@flixwatchsupport)

    It seems to use the max-age of the cache on the site – https://developers.google.com/amp/cache/update-cache

    Plugin Support qtwrk

    (@qtwrk)

    yeah , but that is cache-control header, which has nothing to do with LiteSpeed Cache

    Thread Starter FlixWatch Support

    (@flixwatchsupport)

    Where do you change that then?

    Plugin Support qtwrk

    (@qtwrk)

    what is it current value ?

    from what I know , all dynamic page from WP has default to cache-control: max-age=0

    you can verify your AMP page response header first

    you can use htaccess with Header Set directive to change it

    Plugin Support qtwrk

    (@qtwrk)

    e.g.

    Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0"

    apply some SetEnvIf condition , make sure it doesn’t override your static resources’s header

    • This reply was modified 5 years, 2 months ago by qtwrk.
    Thread Starter FlixWatch Support

    (@flixwatchsupport)

    Got it Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Cache TTL Query’ is closed to new replies.