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,6 +351,8 @@ if(trim($_GET["TIPOIMAGEM"]) != "" && trim($_GET["TIPOIMAGEM"]) != "nenhum"){ | ||
| 351 | else{ | 351 | else{ |
| 352 | if($cache == true){ | 352 | if($cache == true){ |
| 353 | $nomer = salvaCacheImagem(); | 353 | $nomer = salvaCacheImagem(); |
| 354 | + carregaCacheImagem(); | ||
| 355 | + /* | ||
| 354 | if($_SESSION["i3georendermode"] == 2){ | 356 | if($_SESSION["i3georendermode"] == 2){ |
| 355 | ob_clean(); | 357 | ob_clean(); |
| 356 | header('Cache-Control: public, max-age=22222222'); | 358 | header('Cache-Control: public, max-age=22222222'); |
| @@ -362,13 +364,11 @@ else{ | @@ -362,13 +364,11 @@ else{ | ||
| 362 | ob_clean(); | 364 | ob_clean(); |
| 363 | header('Content-Length: '.filesize($nomer)); | 365 | header('Content-Length: '.filesize($nomer)); |
| 364 | header('Content-Type: image/png'); | 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 | header('Cache-Control: public, max-age=22222222'); | 367 | header('Cache-Control: public, max-age=22222222'); |
| 369 | header('Expires: ' . gmdate('D, d M Y H:i:s', time()+48*60*60) . ' GMT'); | 368 | header('Expires: ' . gmdate('D, d M Y H:i:s', time()+48*60*60) . ' GMT'); |
| 370 | fpassthru(fopen($nomer, 'rb')); | 369 | fpassthru(fopen($nomer, 'rb')); |
| 371 | } | 370 | } |
| 371 | + */ | ||
| 372 | } | 372 | } |
| 373 | else{ | 373 | else{ |
| 374 | if($_SESSION["i3georendermode"] == 0){ | 374 | if($_SESSION["i3georendermode"] == 0){ |