activity-log
activity-log copied to clipboard
Send notification in X hours?
I just think it's very spam for now to send email per log changes. The better way need to save queue in the cache (maybe in wp_options?), and send per X hours all the activity.
@maor What you think about this?
Best, Yakir
Save in wp_options
? You mean, to render the email's HTML and then send on a WP_Cron
event?
I think we need to add an option in the settings, letting users choose if they want to get the email right away (kind of spammy, but good for people that want to be notified fast, i.e. if their client does something wrong, they want to know about it ASAP) or if they want to get a "digest" of multiple events that occurred during the last X hours.
Good point. But for last night I wanted to create a MU, and I just needed to deactivated all my plugins, and I get really spam in my mailbox.
I just think we need to create better way to do that. :)
:100:% agreed! We should definitely do it.
@KingYes I was thinking about this a little more. What if someone does want to get a notification right away? Should we add an option for sending notifications every time the rules are matched, or sending them in batch? I think it would make more sense.