Skip to content

Commit

Permalink
increase batch key lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Jul 28, 2023
1 parent a910606 commit 3cd22fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/Repositories/CleanupRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ private static function getDelay(int $taskIndex, int $length, int $page): float

private static function getCacheKeyLifeTime(): int
{
$value = get_setting("main.autoclean_interval_four");
return intval($value) + 600;
$four = get_setting("main.autoclean_interval_four");
$one = get_setting("main.autoclean_interval_one");
return intval($four) + intval($one) * 2;
}

}
2 changes: 1 addition & 1 deletion include/constants.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.5');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-07-28');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-07-29');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
Expand Down

0 comments on commit 3cd22fd

Please sign in to comment.