Fix cache rebuild for xml and yaml drivers

ATM the metadata is missing fileResources information and because of that when metadata is changed the cached metadata is not rebuilt.