We have a challanging situation where the user has a counter of unread messages. This is saved in the account object and shown in the navigation layout. Because the navigation layout gets cached, the counter is not updated by default very often. This is why we would like to force a refresh of the account object when a new message is created. So that if the user is logged in, the counter will be instantly refreshed. Is this possible?
Things we tried that didn't work:
- Microflow timer widget that checks if the counter needs to be refreshed. This works perfect but breaks the requirement that the user needs to be logged out after 15 minutes of inactivity. Since the microflow timer widget always uses the session, the user will be active forever :)
- Placing the counter in a non-persistent object and refresh it when the message is created
Any idea is most welcome :)