forked from qwerty/tupali
tiempo de cache
This commit is contained in:
parent
0a5f6566e7
commit
32b0677668
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user