This commit is contained in:
Default
2025-05-19 17:09:50 +08:00
parent a37d691705
commit ea365a0b6f

View File

@@ -27,7 +27,7 @@ class SubjectFomartModel extends BaseModel
{ {
if (empty(self::$arrAllSubjectFomart)) { if (empty(self::$arrAllSubjectFomart)) {
$strKey = 'SubjectFomart:All'; $strKey = 'SubjectFomart:All';
self::$arrAllSubjectFomart = Cache::get($strKey); self::$arrAllSubjectFomart = Cache::store(config('view.view_data_cache_driver'))->get($strKey);
if (empty(self::$arrAllSubjectFomart)) { if (empty(self::$arrAllSubjectFomart)) {
self::flushAllSubjectFomartOnCache(); self::flushAllSubjectFomartOnCache();
} }
@@ -50,7 +50,7 @@ class SubjectFomartModel extends BaseModel
self::$arrAllSubjectFomart[$SubjectFomartModel->sfg_id][] = $SubjectFomartModel; self::$arrAllSubjectFomart[$SubjectFomartModel->sfg_id][] = $SubjectFomartModel;
} }
return Cache::set($strKey, self::$arrAllSubjectFomart); return Cache::store(config('view.view_data_cache_driver'))->set($strKey, self::$arrAllSubjectFomart);
} }
} }