ActionScheduler_QueueCleaner::clean()
Do all of the cleaning actions.
Method of the class: ActionScheduler_QueueCleaner{}
No Hooks.
Return
null
. Nothing (null).
Usage
$ActionScheduler_QueueCleaner = new ActionScheduler_QueueCleaner(); $ActionScheduler_QueueCleaner->clean( $time_limit );
- $time_limit(int)
- The number of seconds to use as the timeout and failure period.
Default: 300 (5 minutes)
ActionScheduler_QueueCleaner::clean() ActionScheduler QueueCleaner::clean code WC 9.2.3
public function clean( $time_limit = 300 ) { $this->delete_old_actions(); $this->reset_timeouts( $time_limit ); $this->mark_failures( $time_limit ); }