when cache enable and error occured, always try to return cache

Signed-off-by: Donny Kurnia <donnykurnia@gmail.com>