Invalidate instead of update fileRegister

After renaming a file, the file in the fileRegister contains the wrong
key. Therefore invalidate the cache instead of updating it.