<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<small><font face="Courier New, Courier, monospace">Hello everybody,<br>
<br>
I am looking for suggestions to accomplish what I would like to achieve.
<br>
<br>
Suppose we have a PHP based CMS which could generate a static file copy
of a HTML page, every time nginx access it via fastcgi. I think the
basic configuration on nginx would be like below:<br>
<br>
try_files $uri @cms;<br>
<br>
location @cms {<br>
&nbsp;&nbsp; fastcgi_pass unix:/tmp/fastcgi.socket;<br>
}<br>
<br>
The problem would be that nginx will always serve the static file until
it gets purged. So that if the CMS updated the HTML page, the client
will never get that new version. Is there any way to do that purging or
update mechanism in nginx? Or should that be done by the CMS or
external cron like program?<br>
<br>
Would it not be the same situation if we would use fastcgi_store
directive?<br>
<br>
Thanks in advance for your response.<br>
<br>
Kind regards,<br>
<br>
Anto<br>
</font></small><br>
</body>
</html>