Session api token validation
This commit is contained in:
@@ -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}"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user