remove the warnings by change scope to lambda
add cache for index page
define the cache_key_for_posts
add cache for _post partial
add cache for post show page