mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-05-03 19:17:22 +08:00
increase batch lifetime
This commit is contained in:
@@ -12,8 +12,6 @@ class CleanupRepository extends BaseRepository
|
|||||||
const USER_SEEDING_LEECHING_TIME_BATCH_KEY = "batch_key:user_seeding_leeching_time";
|
const USER_SEEDING_LEECHING_TIME_BATCH_KEY = "batch_key:user_seeding_leeching_time";
|
||||||
const TORRENT_SEEDERS_ETC_BATCH_KEY = "batch_key:torrent_seeders_etc";
|
const TORRENT_SEEDERS_ETC_BATCH_KEY = "batch_key:torrent_seeders_etc";
|
||||||
|
|
||||||
const KEY_LIFETIME = 3600*3;
|
|
||||||
|
|
||||||
private static array $batchKeyActionsMap = [
|
private static array $batchKeyActionsMap = [
|
||||||
self::USER_SEED_BONUS_BATCH_KEY => [
|
self::USER_SEED_BONUS_BATCH_KEY => [
|
||||||
'action' => 'seed_bonus',
|
'action' => 'seed_bonus',
|
||||||
@@ -203,7 +201,7 @@ LUA;
|
|||||||
|
|
||||||
private static function getCacheKeyLifeTime(): int
|
private static function getCacheKeyLifeTime(): int
|
||||||
{
|
{
|
||||||
$value = get_setting("main.autoclean_interval_three");
|
$value = get_setting("main.autoclean_interval_four");
|
||||||
return intval($value) + 600;
|
return intval($value) + 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.5');
|
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.5');
|
||||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-07-27');
|
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-07-28');
|
||||||
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
||||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||||
|
|||||||
+1
-1
@@ -154,7 +154,7 @@ if ($search && $count > 0) {
|
|||||||
torrenttable(json_decode(json_encode($rows), true));
|
torrenttable(json_decode(json_encode($rows), true));
|
||||||
print($pagerbottom);
|
print($pagerbottom);
|
||||||
} else {
|
} else {
|
||||||
stdmsg($lang_torrents['std_search_results_for'] . $search . "\"",$lang_torrents['std_try_again']);
|
stdmsg($lang_torrents['std_search_results_for'] . htmlspecialchars($search) . "\"",$lang_torrents['std_try_again']);
|
||||||
}
|
}
|
||||||
print("</td></tr></table>");
|
print("</td></tr></table>");
|
||||||
stdfoot();
|
stdfoot();
|
||||||
|
|||||||
Reference in New Issue
Block a user