Issue Bug Closed

#89780It isn't possible to use a newly created local ResourceStorage

Yann Weyer 11/26/19, 15:12 updated 04/01/20, 21:14

Description

Same as Bug #62273 :

> If you create a new ResourceStorage through the StorageRepository->createLocalStorage method and there is already other ResourceStorages registered, it isn’t possible to get the ResourceStorage object from either the StorageRepository->FindByUid or ResourceFactory->getStorageObject method.
>
> This is due to caches not being updated after the new ResourceStorage record have inserted into the database.
>
> I guess the best solution would be to have a signal to indicate when the storage cache should be updated, probably both in StorageRepository and ResourceFactory.

Reviews 2