caching for graph api