friends_ids: cache a cloned version of result (refs #1)
as successive calls to splice will make it empty
Merge pull request #2 from naholyr/fix-cache-friends_ids

Fix caching friends_ids