adding apiRoles and hookRoles to cache so documentation can pull them and hooks and api can use them from cache for faster response time.