Fix caching friends_ids

Fix first item of #1