v1.5.0
This commit is contained in:
parent
672d0f295f
commit
83d629568a
20 changed files with 1321 additions and 15 deletions
7
includes/External/ExternalScanner.php
vendored
7
includes/External/ExternalScanner.php
vendored
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue