Issue Bug Closed

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

Jacob Rasmussen 10/16/14, 10:57 updated 05/07/19, 12:17

Description

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 1