Commit 9439220bb1ca23004270468057628d4117810b7b
1 parent
a54c2cc1
Exists in
master
and in
7 other branches
$1
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
admin/admin.db
No preview for this file type
classesphp/mapa_googlemaps.php
... | ... | @@ -351,6 +351,8 @@ if(trim($_GET["TIPOIMAGEM"]) != "" && trim($_GET["TIPOIMAGEM"]) != "nenhum"){ |
351 | 351 | else{ |
352 | 352 | if($cache == true){ |
353 | 353 | $nomer = salvaCacheImagem(); |
354 | + carregaCacheImagem(); | |
355 | + /* | |
354 | 356 | if($_SESSION["i3georendermode"] == 2){ |
355 | 357 | ob_clean(); |
356 | 358 | header('Cache-Control: public, max-age=22222222'); |
... | ... | @@ -362,13 +364,11 @@ else{ |
362 | 364 | ob_clean(); |
363 | 365 | header('Content-Length: '.filesize($nomer)); |
364 | 366 | header('Content-Type: image/png'); |
365 | - //header('Cache-Control: max-age=3600, must-revalidate'); | |
366 | - //header('Expires: ' . gmdate('D, d M Y H:i:s', time()+24*60*60) . ' GMT'); | |
367 | - //header('Last-Modified: '.gmdate('D, d M Y H:i:s', filemtime($nomer)).' GMT', true, 200); | |
368 | 367 | header('Cache-Control: public, max-age=22222222'); |
369 | 368 | header('Expires: ' . gmdate('D, d M Y H:i:s', time()+48*60*60) . ' GMT'); |
370 | 369 | fpassthru(fopen($nomer, 'rb')); |
371 | 370 | } |
371 | + */ | |
372 | 372 | } |
373 | 373 | else{ |
374 | 374 | if($_SESSION["i3georendermode"] == 0){ | ... | ... |