Cached database queries for blog front page and permalinks