Add caching support

Cache is generated after first post/comment load and is invalidated when they're updated.