caching posts and fixed bugs