fixed issues related to caches not being updated when adding entities
Merge pull request #285 from fterrier/caching-hotfix

fixed issues related to caches not being updated when adding entities