From 12a8d17d77f371d9cd485b54177d9021d7529b83 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Sat, 6 Jun 2015 01:41:59 +0000 Subject: [PATCH] Inclusão da biblioteca Reclinejs --- json.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/json.php b/json.php index f8ad6ae..c202ef7 100755 --- a/json.php +++ b/json.php @@ -60,7 +60,10 @@ $urli3geo = str_replace("/ogc.php","",$protocolo.$_SERVER["PHP_SELF"]); $nomeArq = $dir_tmp."/ogc_".md5(implode("",$_GET))."_json_".$output; $nomeMapfileTmp = $nomeArq.".map"; -carregaCacheArquivo(); +$cache = carregaCacheArquivo(); +if($cache == true){ + return; +} // //pega a versao do Mapserver // @@ -327,8 +330,9 @@ function carregaCacheArquivo(){ if(file_exists($nomeArq.".json")){ header("Content-type: application/json"); readfile($nomeArq.".json"); - exit; + return true; } + return false; } function pegaDadosJ(){ -- libgit2 0.21.2