added local caching for posts