update uncaught error to include stack
Correctly build cache keys and store.