Cache posts by nid in localstorage