Created function to write the cache.ini file
Replaced existing cache.ini write code with new function
Added new function to be called when download is skipped as file is up to date