Corrected function call and added message when hitting cache