FIX: fix bug related to settings cache
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\CMS\Repositories\Settings;
|
||||
|
||||
use App\Models\Settings as SettingsModel;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Mcamara\LaravelLocalization\Facades\LaravelLocalization;
|
||||
|
||||
class Settings
|
||||
@@ -104,5 +105,7 @@ class Settings
|
||||
$setting->value = $value;
|
||||
empty($value) ? $setting->delete() : $setting->save();
|
||||
}
|
||||
|
||||
Cache::forget('settings');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user