You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, i'm making a feature to purge my laravel app's cache. The problem is, after cleaning and re-caching in a post request, the flash messages are disappearing.
See:
public function purge_cache() {
Artisan::call('cache:clear');
Artisan::call('config:clear');
Artisan::call('route:clear');
Artisan::call('optimize:clear');
Artisan::call('config:cache');
Artisan::call('route:cache');
return redirect()->back()->with('notification', ['type' => 'success', 'message' => __('admin.cache_purged')]);
}
I use database as session driver and after this request my session is regenerating in db. This is the issue, but i couldn't find a solution.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, i'm making a feature to purge my laravel app's cache. The problem is, after cleaning and re-caching in a post request, the flash messages are disappearing.
See:
I use database as session driver and after this request my session is regenerating in db. This is the issue, but i couldn't find a solution.
I've tried this, didn't work either:
Can anyone help?
Beta Was this translation helpful? Give feedback.
All reactions