Cleaned up cache invalidation on document create, update and destroy.