Title: Problems with many posts (&gt; 30k posts)
Last modified: October 4, 2022

---

# Problems with many posts (> 30k posts)

 *  Resolved [delirium6](https://wordpress.org/support/users/delirium6/)
 * (@delirium6)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problems-with-many-posts-30k-posts/)
 * Hello,
 * The first problem is : when i include in the sitemap a CPT which have 20K posts.
   The quantity of all the posts is near the 30k. For 10k it’s ok.
    The UI which
   load all the posts for the blacklist is loading and after a while we got an error
   and chrome display a white page with error code : Out of Memory. I think it will
   be better to loead the blacklist if a word is in the search input, otherwise 
   display nothing to avoid this.
 * The second problem is the the option of re-generate the xml sitemap on new added
   post.
    When we save, it take to much time, if i desactivate this option it’s 
   more faster. It could be interesting to implement the regeneration via a cron
   action. What do you think ?
 * Otherwise good job for this plug-in.
 * Regards

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [click5](https://wordpress.org/support/users/click5/)
 * (@click5)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problems-with-many-posts-30k-posts/#post-16076985)
 * Hello [@delirium6](https://wordpress.org/support/users/delirium6/),
 * Thank you for your feedback and feature ideas!
 * We can change how we load blacklists for sites with more than 1k posts. We can
   also add an option to regenerate XML Sitemap via a cron job.
 * We will implement it within the next version, but I don’t have a release date
   at this point.
 * I will keep you posted.
 * Btw, have you tried our History Log plugin? Give it a try – [https://wordpress.org/plugins/history-log-by-click5/](https://wordpress.org/plugins/history-log-by-click5/)
 * Thanks,
    click5 Team
 *  Thread Starter [delirium6](https://wordpress.org/support/users/delirium6/)
 * (@delirium6)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problems-with-many-posts-30k-posts/#post-16077908)
 * Hi,
 * Thank you for considering these new features.
 * I will wait the next version, for the moment i generate it manually.
 * For the History Log plugin, it seems to be an interesting plugin, i will see 
   if it could be use in our websites.
 * Regards.
 *  Plugin Author [click5](https://wordpress.org/support/users/click5/)
 * (@click5)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problems-with-many-posts-30k-posts/#post-16163411)
 * Hello [@delirium6](https://wordpress.org/support/users/delirium6/),
 * We’ve just released a new version of our plugin – v1.0.42, which includes few
   bug fixes and option to re-generate XML sitemaps with a cron job.
 * We weren’t able to implement many optimizations related to ordering and blacklists
   in this version. It’s a little more complicated than we initially estimated and
   will require more work.
 * Please give it a try and let us know if you would spot any issues.
 * Thanks,
    click5 Team
 *  Thread Starter [delirium6](https://wordpress.org/support/users/delirium6/)
 * (@delirium6)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problems-with-many-posts-30k-posts/#post-16165464)
 * Hi [@click5](https://wordpress.org/support/users/click5/) ,
 * I have installed the new version of your plug-in and i checked the new option
   for cronjob generation.
 * For the other things, i will wait no problem.
 * Just a question about the cronjob, when did you decide to regenerate it by cronjob?
   
   Because i call the cronjob evry 5 minutes. It will generate it every 5 minutes?
 * Regards
 *  Plugin Author [click5](https://wordpress.org/support/users/click5/)
 * (@click5)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problems-with-many-posts-30k-posts/#post-16166646)
 * Hi [@delirium6](https://wordpress.org/support/users/delirium6/),
 * Yes, it will re-generate the XML Sitemaps every time the cron job runs.
 * Unfortunately it sounds like your website has too many customizations. You may
   need to use the option to manually re-generate XML Sitemaps…sorry.
 * Thanks,
    click5 Team
 *  Thread Starter [delirium6](https://wordpress.org/support/users/delirium6/)
 * (@delirium6)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problems-with-many-posts-30k-posts/#post-16166811)
 * Hi [@click5](https://wordpress.org/support/users/click5/) ,
 * Can I call a function or a php file of your plug-in with a crontask that i will
   configure every night at 23PM on my webserver for example ?
 * Thanks
 *  Thread Starter [delirium6](https://wordpress.org/support/users/delirium6/)
 * (@delirium6)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/problems-with-many-posts-30k-posts/#post-16186233)
 * Hi [@click5](https://wordpress.org/support/users/click5/) ,
 * I watch your plug-in code.
 * You put this :
 *     ```
       if(esc_attr(get_option("click5_sitemap_seo_cron")) === "1"){
           if (! wp_next_scheduled ( 'click5_sitemap_seo_cron' )) {
             wp_schedule_event(time(), 'daily', 'click5_sitemap_seo_cron');
           }
         }
       ```
   
 * You configure to do the task 1 time per day, so it’s ok for me. But you could
   add a parameter to set personnal interval.
 * But, you forget to call wp_clear_scheduled_hook(‘click5_sitemap_seo_cron’) on
   deactivation plugin or uncheck the cron settings.
 * regards.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Problems with many posts (> 30k posts)’ is closed to new replies.

 * ![](https://ps.w.org/sitemap-by-click5/assets/icon-256x256.gif?rev=2728346)
 * [Sitemap by click5](https://wordpress.org/plugins/sitemap-by-click5/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sitemap-by-click5/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sitemap-by-click5/)
 * [Active Topics](https://wordpress.org/support/plugin/sitemap-by-click5/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sitemap-by-click5/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sitemap-by-click5/reviews/)

## Tags

 * [sitemap](https://wordpress.org/support/topic-tag/sitemap/)

 * 10 replies
 * 2 participants
 * Last reply from: [delirium6](https://wordpress.org/support/users/delirium6/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/problems-with-many-posts-30k-posts/#post-16186233)
 * Status: resolved