This isn't so much of a bug, as it is a QOL improvement that might fix some stuff along the way.
Right now the deleteOldFiles() function will iterate through all files inside of the nextcloud folder, even though the files might be inside a directory listed in $excludedElements. In my case it takes forever to iterate through ALL of the data folder during each update, including the painfully large cache, even though at the end of the day it doesn't do anything to those files.