modifies the function that checks for a key in the cache to also check the TTL to reset the cached list a little prior to expiration so we don't see it break
How can this be tested?
Manually set a key to be cached for under 10 minutes instead of 24 hours, next time the task runs (every minute)), you should see it replace the key even though TTL is not 0.
Also, if there's nothing in the cache, the homepage shouldn't be disrupted, just empty in that area.
What are the relevant tickets?
Fixes https://github.com/mitodl/hq/issues/4615
Description (What does it do?)
modifies the function that checks for a key in the cache to also check the TTL to reset the cached list a little prior to expiration so we don't see it break
How can this be tested?
Manually set a key to be cached for under 10 minutes instead of 24 hours, next time the task runs (every minute)), you should see it replace the key even though TTL is not 0. Also, if there's nothing in the cache, the homepage shouldn't be disrupted, just empty in that area.