Kirk Parker wrote:
I'm not sure--won't the database have to be queried in
order to determine which page to display anyway?
Take a request to page.php?subject=125225 as an example. If a current cache file exists for subject 125225, it will include it, instead of generating the content from the database.
Kirk Parker wrote:
If that's all you want, then surely the php script you post
to (i.e. which receives the content) could surely be the one
that writes the static html page.
This is the point at which I want the static page created. My concern is if multiple posts are trying to update the static file at the exact same time. The static file would be all garbled.
I just need to know of a good way in PHP to lock access to a file.