Cache errors and clear console