ActionScheduler_QueueCleaner::clean()
Do all of the cleaning actions.
Метод класса: ActionScheduler_QueueCleaner{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$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.
По умолчанию: 300 (5 minutes)
Код ActionScheduler_QueueCleaner::clean() ActionScheduler QueueCleaner::clean WC 9.5.1
public function clean( $time_limit = 300 ) { $this->delete_old_actions(); $this->reset_timeouts( $time_limit ); $this->mark_failures( $time_limit ); }