gpttemp
This commit is contained in:
@@ -31,6 +31,20 @@ class SystemConfigModel extends BaseModel
|
||||
return self::$arrSystemConfig[$strCode] ?? NULL;
|
||||
}
|
||||
|
||||
static public function getConfigs()
|
||||
{
|
||||
if (self::$arrSystemConfig == []) {
|
||||
self::$arrSystemConfig = Cache::get('Config');
|
||||
|
||||
if (empty(self::$arrSystemConfig)) {
|
||||
self::flushCache();
|
||||
self::$arrSystemConfig = Cache::get('Config');
|
||||
}
|
||||
}
|
||||
|
||||
return self::$arrSystemConfig ?? NULL;
|
||||
}
|
||||
|
||||
static public function flushCache()
|
||||
{
|
||||
$arrSystemConfig = self::column('sc_val', 'sc_code');
|
||||
|
||||
Reference in New Issue
Block a user