Automattic / msm-sitemap

Comprehensive sitemaps for your WordPress VIP site. Joint collaboration between Metro.co.uk, WordPress VIP, Alley Interactive, Maker Media, 10up, and others.
73 stars 37 forks source link

Kill The Initial Cron #81

Open mjangda opened 8 years ago

mjangda commented 8 years ago

Per discussions in #76 and #77, we should just remove all the cron stuff.

It's overly complex, has lots of problems (breaks on large sites, especially on initial activation) and doesn't match our use cases. Instead, we should document the CLI pieces better and provide examples on how best to configure ongoing updates.

mjangda commented 7 years ago

Thinking this through a bit more (but open to discussion):

For sites that don't have access to a queue/tasks/jobs system, it would be impossible to run non-blocking updates for sitemaps (e.g. after a post is updated). So, we may want to keep cron around for individual sitemap updates, but remove the initial cron build and the generate/regenerate buttons.

alexisbellido commented 7 years ago

Hello, any update on this?

I have a large site where the cron process takes a very long time, slows down the site and seems to cause problems with scheduling posts and other cron-based tasks.

I think disabling all cron tasks by default and being able to use wp-cli or a special URL to call via curl (this one because services such as Pantheon don't allow running wp-cli commands from an external cron job) would be very helpful.