debug
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user