Build a cache of which posts have which tags