added caching and loading the posts