humanmade / Cavalcade

A better wp-cron. Horizontally scalable, works perfectly with multisite.
https://engineering.hmn.md/projects/cavalcade/
Other
529 stars 46 forks source link

Multisite cleanup #16

Open larssn opened 8 years ago

larssn commented 8 years ago

Hey, so we're using a WP multisite setup, and noticed that when a site is deleted, Cavalcade doesn't clean out the jobs for these non-existent sites.

add_action('delete_blog', 'cleanup')

function cleanup($site_id) {
// remove jobs owned by $site_id
}
mackensen commented 6 years ago

I'm not sure why this issue was closed; this would still be a useful enhancement for Cavalcade (particularly in light of #74) and near as I can tell it wasn't addressed.

larssn commented 6 years ago

Not sure what my reasoning was. Reopened