Skip to content

Commit

Permalink
Refresh 20 feeds every hour, max once per hour
Browse files Browse the repository at this point in the history
  • Loading branch information
angristan authored Feb 12, 2025
1 parent 7f3a4cc commit 41e222f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Actions/Feed/RefreshFeeds.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public function asJob(): void
{

Feed::orderByRaw('LEAST(last_successful_refresh_at, last_failed_refresh_at) ASC')
->where('last_successful_refresh_at', '<', now()->subMinutes(10))
->limit(10)->get()->each(
->where('last_successful_refresh_at', '<', now()->subMinutes(60))
->limit(20)->get()->each(
fn (Feed $feed) => RefreshFeedEntries::dispatch($feed)
);
}
Expand Down

0 comments on commit 41e222f

Please sign in to comment.