Choosing how to do it is non-trivial. I see two options:
1) Check on every access (to profile and/or group), if an expired record is found then remove it.
2) Cron every day and remove expired. If this gets popular, choosing the time may be difficult.
There is also the option of just leaving expired ones there and not showing them. I do not really like this. It provides a history, which is good, but clutters things.
Expiring tasks/notifications in not yet done.
Choosing how to do it is non-trivial. I see two options:
1) Check on every access (to profile and/or group), if an expired record is found then remove it.
2) Cron every day and remove expired. If this gets popular, choosing the time may be difficult.
There is also the option of just leaving expired ones there and not showing them. I do not really like this. It provides a history, which is good, but clutters things.
I probably favor #2.