Cache TTL Query




Wordpress LScache Plugin: Cache TTL Query

Last Updated on: Wed, 15 Apr 2026 00:00:02
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? Hi, hmmmm , no , cant set different TTL per post type but what exactly is it you want to do ? I dont understand the relation between 5% pages changes and TTL once your page is changed, it will purge the cache , you dont need to bother with TTL Best regards, 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. Hi, what AMP Cache ? which max-age you talk about ? LiteSpeeds own max-age should not affect anything else than LiteSpeed Cache itself. Best regards, It seems to use the max-age of the cache on the site ? https://developers.google.com/amp/cache/update-cache yeah , but that is cache-control header, which has nothing to do with LiteSpeed Cache Where do you change that then? 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 e.g. Header set Cache-Control no-cache, no-store, must-revalidate, max-age=0 apply some SetEnvIf condition , make sure it doesnt override your static resourcess header Got it Thanks.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference