Session api token validation

This commit is contained in:
dredgy committed 2026-06-23 11:20:01 +10:00
1 parent cd1538ba12
commit fcba639bae
25 files changed
+491 -235

No files matched your search

+5
View File
@@ -10,6 +10,11 @@ class FlightObserver
protected function clearCache(UserFlight $flight): void
{
Cache::forget("user_flights_{$flight->user->id}");
//Make queued task if the site gets big
$flight->user->followers()
->get()
->each(fn ($follower) => Cache::forget("user_following_flights_{$follower->id}"));
}