Move cache invalidation to map::loadn,

That function is called from map:load and from map::shift.
Invalidating caches is cheap, doesn't matter if this is done onve for each new submap.