Fixed bug where adding a file to the cache would fail to generate file info