Title: Cache TTL Query
Last modified: January 19, 2021

---

# Cache TTL Query

 *  Resolved [FlixWatch Support](https://wordpress.org/support/users/flixwatchsupport/)
 * (@flixwatchsupport)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cache-ttl-query/)
 * 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](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cache-ttl-query/#post-13930101)
 * 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](https://wordpress.org/support/users/flixwatchsupport/)
 * (@flixwatchsupport)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cache-ttl-query/#post-13930393)
 * 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](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cache-ttl-query/#post-13930426)
 * 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](https://wordpress.org/support/users/flixwatchsupport/)
 * (@flixwatchsupport)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cache-ttl-query/#post-13930506)
 * It seems to use the max-age of the cache on the site – [https://developers.google.com/amp/cache/update-cache](https://developers.google.com/amp/cache/update-cache)
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cache-ttl-query/#post-13930510)
 * yeah , but that is cache-control header, which has nothing to do with LiteSpeed
   Cache
 *  Thread Starter [FlixWatch Support](https://wordpress.org/support/users/flixwatchsupport/)
 * (@flixwatchsupport)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cache-ttl-query/#post-13930516)
 * Where do you change that then?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cache-ttl-query/#post-13930521)
 * 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](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cache-ttl-query/#post-13930522)
 * 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](https://wordpress.org/support/users/qtwrk/).
 *  Thread Starter [FlixWatch Support](https://wordpress.org/support/users/flixwatchsupport/)
 * (@flixwatchsupport)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cache-ttl-query/#post-13930527)
 * Got it Thanks.

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

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

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [FlixWatch Support](https://wordpress.org/support/users/flixwatchsupport/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/cache-ttl-query/#post-13930527)
 * Status: resolved