Commit 12a8d17d77f371d9cd485b54177d9021d7529b83
1 parent
25e497b4
Exists in
master
Inclusão da biblioteca Reclinejs
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
json.php
@@ -60,7 +60,10 @@ $urli3geo = str_replace("/ogc.php","",$protocolo.$_SERVER["PHP_SELF"]); | @@ -60,7 +60,10 @@ $urli3geo = str_replace("/ogc.php","",$protocolo.$_SERVER["PHP_SELF"]); | ||
60 | $nomeArq = $dir_tmp."/ogc_".md5(implode("",$_GET))."_json_".$output; | 60 | $nomeArq = $dir_tmp."/ogc_".md5(implode("",$_GET))."_json_".$output; |
61 | $nomeMapfileTmp = $nomeArq.".map"; | 61 | $nomeMapfileTmp = $nomeArq.".map"; |
62 | 62 | ||
63 | -carregaCacheArquivo(); | 63 | +$cache = carregaCacheArquivo(); |
64 | +if($cache == true){ | ||
65 | + return; | ||
66 | +} | ||
64 | // | 67 | // |
65 | //pega a versao do Mapserver | 68 | //pega a versao do Mapserver |
66 | // | 69 | // |
@@ -327,8 +330,9 @@ function carregaCacheArquivo(){ | @@ -327,8 +330,9 @@ function carregaCacheArquivo(){ | ||
327 | if(file_exists($nomeArq.".json")){ | 330 | if(file_exists($nomeArq.".json")){ |
328 | header("Content-type: application/json"); | 331 | header("Content-type: application/json"); |
329 | readfile($nomeArq.".json"); | 332 | readfile($nomeArq.".json"); |
330 | - exit; | 333 | + return true; |
331 | } | 334 | } |
335 | + return false; | ||
332 | } | 336 | } |
333 | 337 | ||
334 | function pegaDadosJ(){ | 338 | function pegaDadosJ(){ |