Update the 'loadCache' function.