uawdijnntqw1x1x1
IP : 216.73.216.93
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
admin.priyotama.com
/
app
/
Observers
/
DataSettingObserver.php
/
/
<?php namespace App\Observers; use App\Models\DataSetting; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; class DataSettingObserver { /** * Handle the DataSetting "created" event. */ public function created(DataSetting $dataSetting): void { $this->refreshBusinessSettingsCache(); } /** * Handle the DataSetting "updated" event. */ public function updated(DataSetting $dataSetting): void { $this->refreshBusinessSettingsCache(); } /** * Handle the DataSetting "deleted" event. */ public function deleted(DataSetting $dataSetting): void { $this->refreshBusinessSettingsCache(); } /** * Handle the DataSetting "restored" event. */ public function restored(DataSetting $dataSetting): void { $this->refreshBusinessSettingsCache(); } /** * Handle the DataSetting "force deleted" event. */ public function forceDeleted(DataSetting $dataSetting): void { $this->refreshBusinessSettingsCache(); } private function refreshBusinessSettingsCache() { $prefix = 'data_settings_'; $cacheKeys = DB::table('cache') ->where('key', 'like', "%" . $prefix . "%") ->pluck('key'); $appName = env('APP_NAME').'_cache'; $remove_prefix = strtolower(str_replace('=', '', $appName)); $sanitizedKeys = $cacheKeys->map(function ($key) use ($remove_prefix) { $key = str_replace($remove_prefix, '', $key); return $key; }); foreach ($sanitizedKeys as $key) { Cache::forget($key); } } }
/home/users/unlimited/www/admin.priyotama.com/app/Observers/DataSettingObserver.php