Title: Huge CPU Load when editing / adding adverts
Last modified: August 30, 2016

---

# Huge CPU Load when editing / adding adverts

 *  [hothbricks](https://wordpress.org/support/users/hothbricks/)
 * (@hothbricks)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/huge-cpu-load-when-editing-adding-adverts/)
 * Hi,
 * Just noticed today that whenever I edit / add / Moderate adverts, my server is
   experiencing a huge CPU load. it goes back to normal state as soons as I stop
   or desactivate the plugin.
    Could you have a look if you can replicate this issue?
 * [https://wordpress.org/plugins/wpadverts/](https://wordpress.org/plugins/wpadverts/)

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

 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/huge-cpu-load-when-editing-adding-adverts/#post-6508691)
 * How are you measuring CPU load? and what do you mean by “high load”?
 *  Thread Starter [hothbricks](https://wordpress.org/support/users/hothbricks/)
 * (@hothbricks)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/huge-cpu-load-when-editing-adding-adverts/#post-6508702)
 * I base this on my WHM Server Load criteria which is cranking up suddenly from
   average less than 1 (6 CPUs) to sometime 15/17. Still investigating though
 * Question : Does your plugin use WP-CRON ?
 *  [MyCoach](https://wordpress.org/support/users/bernard77176/)
 * (@bernard77176)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/huge-cpu-load-when-editing-adding-adverts/#post-6508788)
 * In response to this concern cpu
    I too had noticed a certain slowness.
 * After a “small” research
 * This would seem to come from a wrong code in the file taxonomy.php wordpress.
 * Information found on the website of Korben.info (thank you to him)!
 * This would not be the fault of the plugin.
 * > … So WordPress itself that filled this field without ever clean Rah … the ugly
   > bug. After searching on the WordPress Trac, I saw that I was not alone and 
   > that it was a problem with the cron job wp_batch_split_terms evil called in
   > the file wp-includes / taxonomy.php
   > We must therefore replace the 4448 line of this file.
   > see [https://core.trac.wordpress.org/changeset/33646/trunk/src/wp-includes/taxonomy.php](https://core.trac.wordpress.org/changeset/33646/trunk/src/wp-includes/taxonomy.php)...
 * I made the change.
 * To be continued
 * Bernard
 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/huge-cpu-load-when-editing-adding-adverts/#post-6508793)
 * Thanks for the feedback Bernard, i never seen similar issue before, i will investigate
   it.
 * The plugin is currently using 2 WP-CRON events
    – adverts_event_gc this is run
   daily and removes from DB unfinished Ads posting in the frontend – adverts_event_expire_ads
   this runs every 5 minutes and disables expired ads.
 *  Thread Starter [hothbricks](https://wordpress.org/support/users/hothbricks/)
 * (@hothbricks)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/huge-cpu-load-when-editing-adding-adverts/#post-6508870)
 * Further investigation :
    You indeed need to modify the taxonomy.php file AND 
   you need to clean the cron field in your xx_options table on your wordpress database
   to avoid huge load because it was filled with cron requests that are never deleted.

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

The topic ‘Huge CPU Load when editing / adding adverts’ is closed to new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [hothbricks](https://wordpress.org/support/users/hothbricks/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/huge-cpu-load-when-editing-adding-adverts/#post-6508870)
 * Status: not resolved