Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Raghav 34 posts 103 karma points
    Feb 01, 2015 @ 13:51
    Raghav
    0

    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

     

     

  • Jeavon Leopold 3074 posts 13631 karma points MVP 11x admin c-trib
    Feb 01, 2015 @ 16:44
    Jeavon Leopold
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft