removed unnecessary temp-vars from cache.js