TheCodeCompany / yoast-sitemap-cli

Yoast Sitemap WP CLI plugin
3 stars 4 forks source link

Can this be extended to cache all level 2 sitemaps as well? #1

Open rvencu opened 4 years ago

rvencu commented 4 years ago

I think it would be much easier to cache all sitemaps. For large websites usually, the second level sitemap has 1000 entries while the index might have less than 1000 entries. Thus the second level sitemap could be generated even slower than the index.

On the other topic, I tested this plugin on a multisite installation and it works well, except the CRON jobs must be created for all sites otherwise missing ones will report 404 error on the sitemap index.

benmay commented 4 years ago

Thanks @rvencu - good feedback. It could be possible indeed. I'll ask @zacscott to confirm for you!

rvencu commented 4 years ago

Thanks. There is also another issue with the preload/cache warming up. I have 250000 posts on my site and the PHP based preloading is just too slow. I had to use multithreaded preloader and I found this solution working well: https://github.com/chr4/cache_warmer This reduced my preloading time from 10 days to 100 minutes on a 20 cores server (it only loads 4 CPU at peak times)

DuyNKs commented 3 years ago

It works fine with level 1 but level 2 doesn't create the file xml. Can you upgrade it?

fliespl commented 8 months ago

@rvencu have you ever get to making second level sitemaps xml?