Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/Jobs/PruneEventPageUpdatesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ class PruneEventPageUpdatesTable extends Job
public function handle(): void
{
// Assume that we only need the latest 100k page update events
// and delete 100 if there are too many
// and delete 500 if there are too many
EventPageUpdate::where('id', '<', DB::table('event_page_updates')->max('id') - 100000)
->orderBy('id', 'ASC')
->take(100)
->take(500)
->delete();
}
}