legs: make tods work in production with caching

Signed-off-by: diditclear <didyourupgradeclear@gmail.com>