json 반환시 캐싱하지 않도록 설정.
연감용 json 반환에는 캐싱할 수 있도록 설정
This commit is contained in:
+8
-1
@@ -33,4 +33,11 @@ else{
|
||||
$post['month'] = null;
|
||||
}
|
||||
|
||||
returnJson(getWorldMap($post));
|
||||
$result = getWorldMap($post);
|
||||
if($post['year'] && $post['month'] && $result['result']){
|
||||
//연감 자료는 캐싱 가능
|
||||
returnJson($result, false);
|
||||
}
|
||||
else{
|
||||
returnJson($result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user