Title: High CPU load
Last modified: January 9, 2025

---

# High CPU load

 *  Resolved [adio93](https://wordpress.org/support/users/adio93/)
 * (@adio93)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/high-cpu-load-8/)
 * <font _mstmutation=”1″></font>Hi, with preload CPU load increases to 100%, without
   preload more to 40%. I have 4 CPU cores and 8GB RAM on my server. WooCommerce
   store, 30,000 products, 500 categories, 44,000 attachments, only products, attachments,
   categories are included in the sitemap

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

 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/high-cpu-load-8/#post-18235227)
 * I can give you some filters that would throttle the Preload;
 * – Using add_filter(‘wpoptimize_preload_delay’, ‘my_preload_delay_method’), you
   can override the delay between two pages, which is currently set at 500000 (1/
   2 a second).
 * – Using add_filter(‘wpo_page_cache_preload_memory_threshold’, 10485760);
   That
   filter lets you change how much memory should be left before interrupting the
   preload queue (10MB by default).
 * – Using add_filter(‘wpo_page_cache_preload_continue_interval’, 600);
   This filter
   enables to change the time before the preload resumes when interrupted (600s 
   by Default).
 *  Thread Starter [adio93](https://wordpress.org/support/users/adio93/)
 * (@adio93)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/high-cpu-load-8/#post-18235277)
 * I put this in functions.php and got an error, the site stopped working<font _mstmutation
   =”1″></font>
 * //WP-Optimize
 * add_filter(‘wpoptimize_preload_delay’, ‘my_preload_delay_method’);
 * add_filter(‘wpo_page_cache_preload_memory_threshold’, 10485760);
 * add_filter(‘wpo_page_cache_preload_continue_interval’, 600);
 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/high-cpu-load-8/#post-18237432)
 * Can you try adding via a snippets plugin?
 *  Thread Starter [adio93](https://wordpress.org/support/users/adio93/)
 * (@adio93)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/high-cpu-load-8/#post-18238262)
 * **This didn’t help, I get an error when activating**
 * A critical error occurred on the site. Please check the site administrator’s 
   inbox for instructions. If you’re still having problems, visit [the support forums](https://ru.wordpress.org/support/forums/).
 * [Learn more about troubleshooting WordPress issues.](https://wordpress.org/documentation/article/faq-troubleshooting/)
 * **There is an error in the logs**
 * **2025-01-11T14:31:30+00:00 Critical** Uncaught TypeError: call_user_func_array():
   Argument #1 ($callback) must be a valid callback, no array or string given in/
   var/www/fastuser/data/www/auhouse.ru/wp-includes/class-wp-hook.php:324 Дополнительный
   контекст{ “error”: { “type”: 1, “file”: “/var/www/fastuser/data/www/auhouse.ru/
   wp-includes/class-wp-hook.php”, “line”: 324 }, “remote-logging”: true, “backtrace”:[“”,“#
   0 /var/www/fastuser/data/www/auhouse.ru/wp-includes/plugin.php(205): WP_Hook-
   >apply_filters()”, “#1 /var/www/fastuser/data/www/auhouse.ru/wp-content/plugins/
   wp-optimize/includes/class-wp-optimize-preloader.php(49): apply_filters()”, “#
   2 /var/www/fastuser/data/www/auhouse.ru/wp-content/plugins/wp-optimize/cache/
   class-wpo-page-cache.php(1535): WP_Optimize_Preloader->get_continue_preload_cron_interval()”,“#
   3 /var/www/fastuser/data/www/auhouse.ru/wp-includes/class-wp-hook.php(324): WPO_Page_Cache-
   >cron_schedules()”, “#4 /var/www/fastuser/data/www/auhouse.ru/wp-includes/plugin.
   php(205): WP_Hook->apply_filters()”, “#5 /var/www/fastuser/data/www/auhouse.ru/
   wp-includes/cron.php(1116): apply_filters()”, “#6 /var/www/fastuser/data/www/
   auhouse.ru/wp-includes/cron.php(1014): wp_get_schedules()”, “#7 /var/www/fastuser/
   data/www/auhouse.ru/wp-includes/class-wp-hook.php(324): _wp_cron()”, “#8 /var/
   www/fastuser/data/www/auhouse.ru/wp-includes/class-wp-hook.php(348): WP_Hook-
   >apply_filters()”, “#9 /var/www/fastuser/data/www/auhouse.ru/wp-includes/plugin.
   php(517): WP_Hook->do_action()”, “#10 /var/www/fastuser/data/www/auhouse.ru/wp-
   settings.php(726): do_action()”, “#11 /var/www/fastuser/data/www/auhouse.ru/wp-
   config.php(62): require_once(‘…’)”, “#12 /var/www/fastuser/data/www/auhouse.ru/
   wp-load.php(50): require_once(‘…’)”, “#13 /var/www/fastuser/data/www/auhouse.
   ru/wp-blog-header.php(13): require_once(‘…’)”, “#14 /var/www/fastuser/data/www/
   auhouse.ru/index.php(17): require(‘…’)”, “#15 {main}”, “thrown” ] }
 *  Thread Starter [adio93](https://wordpress.org/support/users/adio93/)
 * (@adio93)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/high-cpu-load-8/#post-18239256)
 * <font _mstmutation=”1″></font>This filter is causing the error.
 * add_filter(‘wpo_page_cache_preload_continue_interval’, 600);
 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/high-cpu-load-8/#post-18241982)
 * Apologies, I do not get this error when I add this to my site.
 * If you go into the class-wpo-load-url-task.php, you can change the following 
   settings
 * [https://snipboard.io/Oe9VsG.jpg](https://snipboard.io/Oe9VsG.jpg)
 * Can you try either changing the value here or adding a filter to change the value?
 *  Thread Starter [adio93](https://wordpress.org/support/users/adio93/)
 * (@adio93)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/high-cpu-load-8/#post-18242222)
 * Please check<font _mstmutation=”1″></font>
 * This filter works – add_filter(‘wpoptimize_preload_delay’, ‘my_preload_delay_method’,
   500000);
 * This filter works – add_filter(‘wpo_page_cache_preload_memory_threshold’, 10485760);
 * This filter is causing an error – add_filter(‘wpo_page_cache_preload_continue_interval’,
   600);
 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/high-cpu-load-8/#post-18246249)
 * Try the ones that do work for you and see if these help manage your load.
 *  Thread Starter [adio93](https://wordpress.org/support/users/adio93/)
 * (@adio93)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/high-cpu-load-8/#post-18246268)
 * I’ll try to see if there is a way to disable automatic cache clearing when importing
   products?
 *  Thread Starter [adio93](https://wordpress.org/support/users/adio93/)
 * (@adio93)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/high-cpu-load-8/#post-18246794)
 * This filter helped me to regulate the loading
 * add_filter(‘wpoptimize_preload_delay’, ‘my_preload_delay_method’, 500000);
 * Preloading works but the number of pages is shown as “Preloading posts found 
   in sitemap: 0 out of 31661 preloaded URLs”, the value 0 does not change
 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/high-cpu-load-8/#post-18248135)
 * This sounds like something different, can you post your php error logs,
 * Could you send me the link to your site map?
 * What are you using to generate your sitemap?
 *  Thread Starter [adio93](https://wordpress.org/support/users/adio93/)
 * (@adio93)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/high-cpu-load-8/#post-18259233)
 * There are no errors in the logs
 * [https://auhouse.ru/sitemap.xml](https://auhouse.ru/sitemap.xml)
 * Standard WP sitemap, no SEO plugins used
    -  This reply was modified 1 year, 2 months ago by [adio93](https://wordpress.org/support/users/adio93/).
 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/high-cpu-load-8/#post-18263873)
 * If you open the JS console while preloading, do you see any errors?
 * Can you try using Yoast to generate a sitemap to see if that makes any difference?

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

The topic ‘High CPU load’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/high-cpu-load-8/#post-18263873)
 * Status: resolved