Fix API cache invalidation
Merge pull request #42 from rudyrigot/api_cache_invalidation_bug

Fix API cache invalidation