From 32b06776689009b1189ff946e898f21aa1479956 Mon Sep 17 00:00:00 2001 From: humano Date: Tue, 28 Apr 2020 15:53:01 -0500 Subject: [PATCH] tiempo de cache --- mapero.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapero.php b/mapero.php index 4c07f33..f3894f7 100644 --- a/mapero.php +++ b/mapero.php @@ -285,7 +285,7 @@ if (!copy($geojson_original, $nuevo_fichero)) { $geojson = "milfs/geojson.js.php?id=$_REQUEST[id]&buscar=$cadena_busqueda&item=$_REQUEST[item]"; }else{ $nombre_geojson = "cache/".md5($_SERVER[QUERY_STRING]).".json"; - $cachetime = 1; + $cachetime = 1800; if (is_readable($nombre_geojson) && time() - $cachetime < filemtime($nombre_geojson) ) { $geojson= "$nombre_geojson";