Enhance order of clearing the cache and potentially accessing the db
This commit is contained in:
parent
e373cabc96
commit
734b98e759
@ -67,9 +67,9 @@ class CloudRepositoryImpl implements CloudRepository {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Cloud storedCloud = mapper.fromEntity(database.store(mapper.toEntity(cloud)));
|
Cloud storedCloud = mapper.fromEntity(database.store(mapper.toEntity(cloud)));
|
||||||
|
database.clearCache();
|
||||||
|
|
||||||
dispatchingCloudContentRepository.updateCloudContentRepositoryFor(storedCloud);
|
dispatchingCloudContentRepository.updateCloudContentRepositoryFor(storedCloud);
|
||||||
database.clearCache();
|
|
||||||
|
|
||||||
return storedCloud;
|
return storedCloud;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user