Adding missing return to processCache() function