Posted by Wayne on 11/04/71 11:17
On Sun, 29 May 2005 18:05:18 GMT, bruce@nospam.com (Bruce) wrote:
>1. Make all the pages php and query and create pages on the fly as needed
>by the users.
>
>2. Setup a cron task to call a php script and generate all the html pages
>once a day during some low usage period.
I do #3:
3. Make all pages php and query and create pages on the fly as needed
but cache the results and display the cached result for all subsequent
users if the content hasn't changed.
The reason for this is that while content can change infrequently it's
also unpredictable about when it does change. With a cron task,
changes to the site are not immediate. Also, most of the pages are
custom to each user in some degree (displaying whether or not they are
logged in) even if the content is static. We also rotate ads which is
another reason for keeping the pages at least partially dynamic.
[Back to original message]
|