You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the fields cvlValues and cvls are static, they work as cached for days/weeks/month if not pim is restarted. So the value is empty as the value does not exists.
What about setting a DateTime variable when RemoteManager.ModelService.GetAllCVLValues() was used last time, and then make it configurable to get the values again if time has passed, (for 5,10 or 30 min) ?
The text was updated successfully, but these errors were encountered:
Looks like the RemoteManager.ModelService.GetAllCVLs and List GetCVLValuesForCVL(string cvlId) is cached internally in the ModelService. So you could probably rewrite the static List CVLs to use GetAllCVLs and GetCVLValuesForCVL(string cvlId).
With this implementation you wouldn't need a local cache.
GetAllCVLValues and GetAllCVLs is cached by PIM System setting CVL_VALUE_CACHE_LIFETIME
so this seems to be working:
public List<CVLValue> CVLValues => RemoteManager.ModelService.GetAllCVLValues();//this is cached by PIM System setting CVL_VALUE_CACHE_LIFETIME public List<CVL> CVLs => RemoteManager.ModelService.GetAllCVLs();//this is cached by PIM System setting CVL_VALUE_CACHE_LIFETIME
Fargerike has this error.
Since the fields cvlValues and cvls are static, they work as cached for days/weeks/month if not pim is restarted. So the value is empty as the value does not exists.
Epinova.InRiverConnector/src/EpiserverAdapter/Helpers/PimFieldAdapter.cs
Line 97 in 7aada23
How would you rebuild it? or solve it?
What about setting a DateTime variable when RemoteManager.ModelService.GetAllCVLValues() was used last time, and then make it configurable to get the values again if time has passed, (for 5,10 or 30 min) ?
The text was updated successfully, but these errors were encountered: