Fix #238 - Change cache.push order

Change order of cache function, now the callback runs after the
app.cache.push, so the cache is set anyway if enabled.