Add function to cache POST API calls
Cache POST /presence, fixes #14