ActionScheduler_WPCLI_QueueRunner::stop_the_insanity
Deprecated since 3.0.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Sleep and help avoid hitting memory limit
Method of the class: ActionScheduler_WPCLI_QueueRunner{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->stop_the_insanity( $sleep_time );
- $sleep_time(int)
- Amount of seconds to sleep.
Changelog
| Deprecated since | 3.0.0 |
ActionScheduler_WPCLI_QueueRunner::stop_the_insanity() ActionScheduler WPCLI QueueRunner::stop the insanity code WC 10.4.3
protected function stop_the_insanity( $sleep_time = 0 ) {
_deprecated_function( 'ActionScheduler_WPCLI_QueueRunner::stop_the_insanity', '3.0.0', 'ActionScheduler_DataController::free_memory' );
ActionScheduler_DataController::free_memory();
}