Different TTL depending on time of day




Wordpress LScache Plugin: Different TTL depending on time of day

Last Updated on: Wed, 15 Apr 2026 00:00:02
Is it possible to have a different TTL depending on the time of day? Ive a UK based site that is very focused to the UK, I dont have much international traffic, so my site is really busy during the day but hardly any traffic over night. Also Im busy publishing lost of content during the day so the site is regularly getting new content during the day. Because of this Id like a low TTL on my content of less than a hour, but then over night when nothing changes on the site Il like to be able to set a longer TTL as it seems wasteful to be clearing the cache when noting is being changed on the site, Hi @theukdirectory, You can keep a long TTL during the day as well, whenever you publish or edit a post or page, it will get flushed from the cache. Additionally a few other pages are flushed, these are configured within LiteSpeed Cache settings under the [3] Purge section: https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:configuration:purge#auto_purge_rules_for_publish_update



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



Reference