Wordpress LScache Plugin: REST API Cache TTL
Last Updated on: Wed, 15 Apr 2026 00:00:02 Is it possible to specify the TTL for requests to the REST API? I want it to differ from pages and posts. Sure. Will give in v3.0 Awesome thanks. I do have another question, Im trying to cache the REST API output of a custom endpoint but a nonce has to be provided to validate the request. Im getting a 500 error when I do this and this shows in the server logs? [Module:Cache] vary request header Origin not defined! Any way to make this work? Hi @thekendog, can you show us the code of how you create the custom endpoint? @stanleylitespeed it appears to be the same issue as here? https://github.com/litespeedtech/lscache_wp/issues/182 Any update on a fix for this? Hi @thekendog, could you please join our Slack channel and find me(Stanley Cheung at Litespeed) or submit a ticket here for helping us to reproduce the bug, thanks. REST TTL is added in https://github.com/litespeedtech/lscache_wp/commit/af696de1e174399f8165ac3a58f98fa99ccefb4b Will see in v3.0. Thanks again. Sweet. Looking forward to 3.0. Hi everyone, any updates on this? Im on version 3.0.8.6 but still getting this error
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference