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.eclassify.codeskitter.site
/
app
/
Services
/
.
/
CachingService.php
/
/
<?php namespace App\Services; use App\Models\Language; use App\Models\Setting; use Illuminate\Support\Facades\Cache; class CachingService { /** * @param $key * @param callable $callback - Callback function must return a value * @param int $time = 3600 * @return mixed */ public static function cacheRemember($key, callable $callback, int $time = 3600) { return Cache::remember($key, $time, $callback); } public static function removeCache($key) { Cache::forget($key); } /** * @param array|string $key * @return mixed|string */ public static function getSystemSettings(array|string $key = '*') { $settings = self::cacheRemember(config('constants.CACHE.SETTINGS'), static function () { return Setting::all()->pluck('value', 'name'); }); if (($key != '*')) { /* There is a minor possibility of getting a specific key from the $systemSettings * So I have not fetched Specific key from DB. Otherwise, Specific key will be fetched here * And it will be appended to the cached array here */ $specificSettings = []; // If array is given in Key param if (is_array($key)) { foreach ($key as $row) { if ($settings && is_array($settings) && array_key_exists($row, $settings)) { $specificSettings[$row] = $settings[$row] ?? ''; } } return $specificSettings; } // If String is given in Key param if ($settings && is_object($settings) && $settings->has($key)) { return $settings[$key] ?? ''; } return ""; } return $settings; } public static function getLanguages() { return self::cacheRemember(config('constants.CACHE.LANGUAGE'), static function () { return Language::all(); }); } public static function getDefaultLanguage() { return Language::where('code', 'en')->first(); } }
/home/users/unlimited/www/admin.eclassify.codeskitter.site/app/Services/./CachingService.php