[loader-v2] Fixing global cache reads & read-before-write on publish (#15285)