first upload all files
This commit is contained in:
20
Modules/Setting/Listeners/ClearSettingCache.php
Normal file
20
Modules/Setting/Listeners/ClearSettingCache.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Setting\Listeners;
|
||||
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class ClearSettingCache
|
||||
{
|
||||
/**
|
||||
* Handle the event.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
foreach (supported_locale_keys() as $locale) {
|
||||
Cache::forget(md5('settings.all:' . $locale));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user