Only invalidate the cache if there is a url mapping that exists