Copied to clipboard

Flag this post as spam?

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


  • Petras Surna 90 posts 144 karma points
    Jan 25, 2021 @ 00:18
    Petras Surna
    0

    Is it possible to read Member properties direct from the database?

    Is it possible to read Member properties direct from the database and avoid the Cache?

    I need to do this to get Member data that is saved on this event

    public void Initialize()
    {
      MemberService.Saved += MemeberService_Saved;
    }
    

    However, the data is not available on this event and the Cache Updated event does not fire when saving a Member as discussed here

    public void Initialize()
    {
      CacheRefresherBase<ContentCacheRefresher>.CacheUpdated += CacheUpdated;
    }
    
  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Jan 25, 2021 @ 21:34
    Markus Johansson
    0

    Hi!

    What data do you need? The Saved-event should have an args-object that contains the saved member and all its properties... some thing like args.SavedEntities or something like that.

Please Sign in or register to post replies

Write your reply to:

Draft