Welcome! Log In Create A New Profile

Advanced

Managing static file generated by PHP CMS

January 06, 2011 12:52PM
Hello everybody,

I am looking for suggestions to accomplish what I would like to achieve.

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:

try_files $uri @cms;

location @cms {
fastcgi_pass unix:/tmp/fastcgi.socket;
}

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?

Would it not be the same situation if we would use fastcgi_store directive?

Thanks in advance for your response.

Kind regards,

Anto

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Managing static file generated by PHP CMS

anto January 06, 2011 12:52PM

Re: Managing static file generated by PHP CMS

eagle sbc January 07, 2011 05:14AM

Re: Managing static file generated by PHP CMS

anto January 09, 2011 07:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 305
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready