Cache: don't insert duplicated during upgrade
Files: Dont get maxUploadSize if the filecache needs to be upgraded