Skips to error handler if cache throws error
Prepares cache