Prevalues not getting refreshed after save for the first time + DataTypeService.Saved
Hi,
I have a drop down as a custom data type and have subscribed to the DataTypeService.Saved event.
In this event , I read all the prevalues of the dropdown using GetPreValuesByDataTypeId and save to my separate DB since this is a sort of lookup and we need it for someone business requirement in our DB as well and has to be in sync with Umbraco DB. But the GetPreValuesByDataTypeId returns the stale value and only when I click on save the second time that I get the updated values. Is it because of cache refresh delay and how do I resolve it.
Prevalues not getting refreshed after save for the first time + DataTypeService.Saved
Hi,
I have a drop down as a custom data type and have subscribed to the DataTypeService.Saved event.
In this event , I read all the prevalues of the dropdown using GetPreValuesByDataTypeId and save to my separate DB since this is a sort of lookup and we need it for someone business requirement in our DB as well and has to be in sync with Umbraco DB. But the GetPreValuesByDataTypeId returns the stale value and only when I click on save the second time that I get the updated values. Is it because of cache refresh delay and how do I resolve it.
Regards
Raghav
Hi Raghav,
Yes I have seen this issue also and reported it here.
I have used uQuery as workaround as it makes a direct query on the database so gets the updated values, you can see it in action here.
Jeavon
is working on a reply...