# Person events on Litium 5.5.1 or cache ModuleRelation.Persons

**URL:** <https://forum.litium.com/t/person-events-on-litium-5-5-1-or-cache-modulerelation-persons/2096>\
**Category:** Questions\
**Tags:** litium-5\
**Created:** [June 10, 2021, 7:34am UTC](https://forum.litium.com/t/person-events-on-litium-5-5-1-or-cache-modulerelation-persons/2096 "2021-06-10T07:34:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KamilPiekara](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@KamilPiekara](https://forum.litium.com/u/KamilPiekara)\
**Post date:** [June 10, 2021, 7:34am UTC](https://forum.litium.com/t/person-events-on-litium-5-5-1-or-cache-modulerelation-persons/2096/1 "2021-06-10T07:34:59Z")

</div>

In in newer versions of Litium there is EventBroker and ‘PersonCreated’, ‘PersonDeleted’ and ‘PersonUpdated’ events. Is there any similar system in 5.5.1? I see event broker in this version but events seems to be limited to product area.

I require this for some caching purposes, so if there any other way to introduce in-memory cache for ModuleRelation.Persons it would be great to know.

Litium version: 5.5.1

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [June 10, 2021, 7:50am UTC](https://forum.litium.com/t/person-events-on-litium-5-5-1-or-cache-modulerelation-persons/2096/2 "2021-06-10T07:50:59Z")

</div>

It’s different APIs for the different modules, everything is moving to the new way with the `EventBroker` and with Litium 7 only orders are missing.

For Litium 5 you can use the former event managing system, via the `EventManager`.

```auto
ModuleRelations.Instance.EventManager.PersonUpdated += OnPersonUpdatedMetod;
ModuleRelations.Instance.EventManager.PersonCreated += OnPersonCreatedMetod;
ModuleRelations.Instance.EventManager.PersonDeleted += OnPersonDeletedMetod;

```

The ID of the person is passed with the event.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [July 8, 2021, 7:51am UTC](https://forum.litium.com/t/person-events-on-litium-5-5-1-or-cache-modulerelation-persons/2096/3 "2021-07-08T07:51:20Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
