Wordpress LScache Plugin: TTL per page
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi, Is it possible to set TTLs on a page level ? 90% of my site is static and could do with a TTL of months. However i do have a few pages with an availability calendar. As soon as we receive a booking i need to do a manual purge. If i could set the TTL of these few non static pages to e.g. 8 hours, i would no longer need to do manual purges. Thanks, John Hi, Please try set Default Public Cache TTL to high value for most of your pages then use Force Cache URIs to set other pages to lower TTL https://i.imgur.com/lm8bEl1.png where page1/page2/page3 represents the URL , and 3600/7200/10800 means separated, differente TTL to these URL Best regards, Hi, This seems to work out for me, although the ^ and $ puzzled me a little. No need to use these as long as each URL is typed in correctly, or am i missing something here. Thanks, John Hi, No need to use them unless you want to have an exact match. for example you have page name like this https://domain.com/something and https://domain.com/something2 when you use something , it will match both above URL if you only want to match something to something , thats where you need ^ and $ so if your page has a unique URL , you should not need to use them. Best regards, Thanks, an associated question: is there a function that a plugin could call to purge the cache. e.g. After we receive a booking the pages with availability calenders need to be purged. Setting a short TTL on these pages is a solution, but the best way would be if the availability calender plugin could call for a purge of pages. Thanks, John Hi, Yes, you can use our API to call the purge. Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference