Quantcast
Channel: How do I use mod_rewite to use a cached copy of a page if available otherwise run a dynamic script? - Server Fault
Browsing all 2 articles
Browse latest View live

Answer by Chris S for How do I use mod_rewite to use a cached copy of a page...

Have the website point to the cache directory. Setup a rule that if a file doesn't exist rewrite to a "dynamic" source directory. The dynamic script would have to be responsible for writing to the...

View Article


How do I use mod_rewite to use a cached copy of a page if available otherwise...

I would like to save the generated output of php scripts into a folder structure that apache checks first. /about/index.php <- dynamic should be rendered only if cache below does not...

View Article
Browsing all 2 articles
Browse latest View live