Add cache refresh function