Copied to clipboard

Flag this post as spam?

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


  • Ben Fidge 16 posts 60 karma points
    Jun 03, 2014 @ 16:37
    Ben Fidge
    0

    MemberService.Saved called so many times

    Hi

    Im hooking into the MemberService.Saved event to trigger off some indexing using ElasticSearch whenever a members details are updated via the backoffice or our custom MVC form. I also want to do this when a new member is added.

    The problem is that this event seems to be called a lot of different times during; ie during calls to MembershipHelper.Login and MembershipHelper.GetCurrentMemberProfileModel and other operations involving the MemberService. Not sure why the Umbraco core does a save every time a member is accessed but its causing my indexing process to trigger more times than necessary.

    Is there a better way of intercepting inserts/updates on members and triggering my indexing process?

    Kind regards

    Ben

     

  • Graham Carr 277 posts 389 karma points
    Jul 23, 2014 @ 15:01
    Graham Carr
    0

    Hi Ben,

    Did you get anywhere with this as I am having the same issue in that I am trying to trap when a member is created via the backend however the event you mentioned gets called multiple times as you rightly state.

    Graham

  • Ben Fidge 16 posts 60 karma points
    Jul 24, 2014 @ 10:49
Please Sign in or register to post replies

Write your reply to:

Draft