Title: Mariano Blaya's Replies | WordPress.org

---

# Mariano Blaya

  [  ](https://wordpress.org/support/users/mblaya/)

 *   [Profile](https://wordpress.org/support/users/mblaya/)
 *   [Topics Started](https://wordpress.org/support/users/mblaya/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mblaya/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mblaya/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mblaya/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mblaya/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mblaya/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [wp-cron causing excessive processes](https://wordpress.org/support/topic/wp-cron-causing-excessive-processes/)
 *  [Mariano Blaya](https://wordpress.org/support/users/mblaya/)
 * (@mblaya)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/wp-cron-causing-excessive-processes/page/2/#post-1782558)
 * I also have had some issues with many wp-cron processes running and causing CPU
   throttling.
    As I knew which plugin was running, rather than disabling wp-cron
   on wp-config.php (I am not brave enough .), I came up with a few lines of code
   using API_transient that make the trick. ` $prefix = .... // something to help
   you searching your stuff on wp_options table $name = ..... // whatever identifies
   your function $mins = .... // maximum frequency $trname = substr( $prefix . sprintf("%
   u", crc32($name)), 0, 45 ); if( get_transient($trname) ) return "-- not yet";
   set_transient( $trname, date('c'), $mins*60 ); // your program ....

Viewing 1 replies (of 1 total)