add cache for the permalinks posts, homework 6.2 of udacity's web development course