Skip to content

Commit 6a28df3

Browse files
authored
increase buffer
Signed-off-by: Hasan ÇALIŞIR <hasan.calisir@psauxit.com>
1 parent 4f1d2ac commit 6a28df3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

includes/schedule.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Preload action related schedule cron events for FastCGI Cache Purge and Preload for Nginx
44
* Description: This file contains preload action related schedule cron events functions for FastCGI Cache Purge and Preload for Nginx
5-
* Version: 2.1.3
5+
* Version: 2.1.2
66
* Author: Hasan CALISIR
77
* Author Email: hasan.calisir@psauxit.com
88
* Author URI: https://www.psauxit.com
@@ -541,17 +541,17 @@ function nppp_create_scheduled_event_preload_status_callback() {
541541
if ($final_total > 0) {
542542
$final_total += 20;
543543
} else {
544-
$final_total = 500;
544+
$final_total = 2000;
545545
}
546546

547547
// Save to transient for frontend preload progress
548548
$static_key_base = 'nppp';
549549
$count_transient_key = 'nppp_est_url_counts_' . md5($static_key_base);
550-
set_transient($count_transient_key, $final_total, YEAR_IN_SECONDS);
550+
set_transient($count_transient_key, $final_total, DAY_IN_SECONDS);
551551

552552
if (!empty($last_preload_time)) {
553553
$timestamp_transient_key = 'nppp_last_preload_time_' . md5($static_key_base);
554-
set_transient($timestamp_transient_key, $last_preload_time, YEAR_IN_SECONDS);
554+
set_transient($timestamp_transient_key, $last_preload_time, DAY_IN_SECONDS);
555555
}
556556

557557
// Remove downloaded content

0 commit comments

Comments
 (0)