diff --git a/code/app/model/SubjectFomartModel.php b/code/app/model/SubjectFomartModel.php index 4676a1c..ba63195 100644 --- a/code/app/model/SubjectFomartModel.php +++ b/code/app/model/SubjectFomartModel.php @@ -27,7 +27,7 @@ class SubjectFomartModel extends BaseModel { if (empty(self::$arrAllSubjectFomart)) { $strKey = 'SubjectFomart:All'; - self::$arrAllSubjectFomart = Cache::get($strKey); + self::$arrAllSubjectFomart = Cache::store(config('view.view_data_cache_driver'))->get($strKey); if (empty(self::$arrAllSubjectFomart)) { self::flushAllSubjectFomartOnCache(); } @@ -50,7 +50,7 @@ class SubjectFomartModel extends BaseModel 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); } }