of action IDs to delete. * @param int $lifespan Minimum scheduled age in seconds of the actions being deleted. * @param string $context Context of the delete request. * @return array Deleted action IDs. */ private function delete_actions( array $actions_to_delete, $lifespan = null, $context = 'old' ) { $deleted_actions = []; if ( null === $lifespan ) { $lifespan = $this->hour_in_seconds; } foreach ( $actions_to_delete as $action_id ) { try { $this->store->delete_action( $action_id ); $deleted_actions[] = $action_id; } catch ( \Exception $e ) { /** * Notify 3rd party code of exceptions when deleting a completed action older than the retention period * * This hook provides a way for 3rd party code to log or otherwise handle exceptions relating to their * actions. * * @param int $action_id The scheduled actions ID in the data store * @param \Exception $e The exception thrown when attempting to delete the action from the data store * @param int $lifespan The retention period, in seconds, for old actions * @param int $count_of_actions_to_delete The number of old actions being deleted in this batch * @since 2.0.0 */ do_action( "action_scheduler_failed_{$context}_action_deletion", $action_id, $e, $lifespan, count( $actions_to_delete ) ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound } } return $deleted_actions; } }
Fatal error: Uncaught Error: Class "WP_Rocket\Engine\Common\Queue\Cleaner" not found in /htdocs/le-blog.fr/wp-content/plugins/wp-rocket/inc/Engine/Common/Queue/RUCSSQueueRunner.php:76 Stack trace: #0 /htdocs/le-blog.fr/wp-content/plugins/wp-rocket/inc/Engine/Common/Queue/RUCSSQueueRunner.php(50): WP_Rocket\Engine\Common\Queue\RUCSSQueueRunner->__construct() #1 /htdocs/le-blog.fr/wp-content/plugins/wp-rocket/inc/Engine/Common/JobManager/Cron/Subscriber.php(93): WP_Rocket\Engine\Common\Queue\RUCSSQueueRunner::instance() #2 /htdocs/le-blog.fr/wp-includes/class-wp-hook.php(341): WP_Rocket\Engine\Common\JobManager\Cron\Subscriber->initialize_rucss_queue_runner('') #3 /htdocs/le-blog.fr/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #4 /htdocs/le-blog.fr/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #5 /htdocs/le-blog.fr/wp-settings.php(742): do_action('init') #6 /htdocs/le-blog.fr/wp-config.php(102): require_once('/htdocs/le-blog...') #7 /htdocs/le-blog.fr/wp-load.php(50): require_once('/htdocs/le-blog...') #8 /htdocs/le-blog.fr/wp-blog-header.php(13): require_once('/htdocs/le-blog...') #9 /htdocs/le-blog.fr/index.php(17): require('/htdocs/le-blog...') #10 {main} thrown in /htdocs/le-blog.fr/wp-content/plugins/wp-rocket/inc/Engine/Common/Queue/RUCSSQueueRunner.php on line 76