wordpress json api with simple cache functions.