Skip to content

Commit

Permalink
batch cache lifetime =four+three+one
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Jul 28, 2023
1 parent 3cd22fd commit 83d3066
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Repositories/CleanupRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,9 @@ private static function getDelay(int $taskIndex, int $length, int $page): float
private static function getCacheKeyLifeTime(): int
{
$four = get_setting("main.autoclean_interval_four");
$three = get_setting("main.autoclean_interval_three");
$one = get_setting("main.autoclean_interval_one");
return intval($four) + intval($one) * 2;
return intval($four) + intval($three) + intval($one);
}

}

0 comments on commit 83d3066

Please sign in to comment.