This commit is contained in:
Javier Casares 2026-06-03 06:28:34 +00:00
commit 83d629568a
20 changed files with 1321 additions and 15 deletions

View file

@ -138,7 +138,12 @@ class ExternalScanner {
* @return void
*/
public static function process_scheduled_batch(): void {
self::scan_batch();
$raw = get_option( 'robotstxt_mediaaudit_settings', array() );
$opts = is_array( $raw ) ? $raw : array();
$bs_val = $opts['external_batch_size'] ?? null;
$batch_size = is_numeric( $bs_val ) ? max( 1, (int) $bs_val ) : 10;
self::scan_batch( $batch_size );
if ( self::get_pending_count() > 0 ) {
Scheduler::schedule_single( self::AS_HOOK );