lgy před 1 dnem
rodič
revize
1cd8ff5b8b

+ 6 - 6
server/application/api/dao/template/TemplateDao.php

@@ -61,14 +61,14 @@ class TemplateDao extends ZskkDefaultDao {
 
     public function getPublic($key,$exam_class)
     {
-        $info  = $this->getCache($key);
-        if($info){
-            return $info;
-        }else{
+//        $info  = $this->getCache($key);
+//        if($info){
+//            return $info;
+//        }else{
             $info  = $this->template->getParentTemplate($exam_class,'public');
-            $this->setCache($key,$info,43200);
+//            $this->setCache($key,$info,43200);
             return $info;
-        }
+//        }
     }
 
     public function getPrivate($examClass,$userId)

+ 0 - 2
server/application/api/model/template/TemplateModel.php

@@ -51,7 +51,6 @@ class TemplateModel extends ZskkDefaultModel {
                         ->where('is_public', 1)
                         ->where('parent_id',0)
                         ->where('exam_class_id', $constant_value)
-                        ->field('id, title, exam_class_id, parent_id')
                         ->select();
                     break;
                 case 'private':
@@ -60,7 +59,6 @@ class TemplateModel extends ZskkDefaultModel {
                         ->where('parent_id',0)
                         ->where('exam_class_id', $constant_value)
                         ->where('create_user', $uid)
-                        ->field('id, title, exam_class_id, parent_id')
                         ->select();
                     break;
             }