Update cache.js

Changed behavior of Redis lookups after resume API request