My customer wants reporting on users’ latest activity. The Users service has a column for last_login by default, but relying on this isn’t a great representation of reality because the most engaged users are also the most likely to stay logged in for a while.
What’s the best way to store a timestamp for a users’ most recent activity?**
** I’m pretty sure “best way” means the fastest way to update a user-level timestamp on each content_panel.clear(); content_panel.add_component(new_form()) event (i.e., a new “page” load). Ideally, I’d like this to happen automagically via the MainForm (parent of the content_panel) without needing to address it in the __init__ of each individual form.
What about creating a new table for this information…
Whenever something happens that you want to store you could do a silent call to ther sever module.