always connect file cache updater hooks first

backport of #2943 to stable5

@MTGap @bartv2 @icewind1991 @karlitschek @schiesbn @Raydiation