I created Newspaper sites for some customers who need to display the time and I have a problem. I created the server with Nginx cache Fastcgi and the time does not display correctly. The time is not updating because of the cache. Do you know how I can overcome this problem and make the cache ignore only the caching of the code below?
<p style = "text-align: center;"> <span style = "color: # 000000"> <strong> Porto Velho - RO, & nbsp; <? php
$ spindle = 4; // hourly value more or less according to the factor below
$ factor = "-"; // factor that increases or decreases the spindle time above
$ diasemana [0] = "Sunday";
$ diasemana [1] = "Monday";
$ diasemana [2] = "Tuesday";
$ diasemana [3] = "Wednesday";
$ diasemana [4] = "Thursday";
$ diasemana [5] = "Friday";
$ diasemana [6] = "Saturday";
$ mesname [1] = "January";
$ mesname [2] = "February";
$ mesname [3] = "March";
$ mesname [4] = "April";
$ mesname [5] = "may";
$ mesname [6] = "June";
$ mesname [7] = "July";
$ mesname [8] = "August";
$ mesname [9] = "September";
$ mesname [10] = "October";
$ mesname [11] = "November";
$ mesname [12] = "December";
$ timeadjust = ($ time zone * 60 * 60);
if ($ factor == "+") {
$ year = date ("Y", time () + $ timeadjust);
$ dia = date ("d", time () + $ timeadjust);
$ diasem = date ("w", time () + $ timeadjust);
$ hour = date ("G: i", time () + $ timeadjust);
$ mes = date ("n", time () + $ timeadjust);
}
if ($ factor == "-") {
$ year = date ("Y", time () - $ timeadjust);
$ dia = date ("d", time () - $ timeadjust);
$ diasem = date ("w", time () - $ timeadjust);
$ hora = date ("G: i", time () - $ timeadjust);
$ mes = date ("n", time () - $ timeadjust);
}
echo "$ diasemana [$ diasem], $ dia $ $ name [$ mes] of $ year";
?>, <font color = "# 000000"> <font color = "# 000000" face = "Roboto" size = "4"> </font> <? php
date_default_timezone_set ('America / Porto_Velho');
echo date ('\ à \ s H: i');
?>
<div style = "letter-spacing: 4px;" happens.ro@hotmail.com </strong> </font> </center> </ end code> </strong> </pre>