fixes #3.  Also fixes caching the endpoint.
Merge pull request #5 from matthewshafer/fix-repeat-queries

fixes repeat calls to some queries