refactor: implement centralized cache key management and add utility traits for vCenter SSH operations.
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Providers;
|
||||
|
||||
use App\Http\Facade\SignRSA;
|
||||
use App\Models\Setting;
|
||||
use App\Support\Cache\CacheKey;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
@@ -23,7 +24,7 @@ class MailConfigServiceProvider extends ServiceProvider
|
||||
return;
|
||||
}
|
||||
|
||||
$config = Cache::remember('mail_config', 3600, function () {
|
||||
$config = Cache::remember(CacheKey::build('settings', 'mail'), 3600, function () {
|
||||
if (!Schema::hasTable('setting')) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user