hi,

> >i'd suggest to make things simpler - just plain pre-generated html with
the
> >notes part. name it after TOPIC and include it in the proper place. the
> >generator script may run as cron job. there is only one problem - to
> prevent
> >rsync client from getting a semi-generated copy. this can be achieved
like:
> >or better - why not generate html upon comment add and use the html on
the
> >main site also?
>
> The reason the HTML is not pregenerated, is so that we can change the
> formatting etc on the fly. Perhaps according to a "max comments per page",
> or "look and feel" parameters.  The CPU load in formatting comments is
> pretty insignificant, especially compared to the other things it does at
the
> same time.

keep the stuff in the db like now. when you change design or alignment or
something just generate again... thus loose no flexibility and make
mirroring flawless. the code that generates the html is already written, the
whole thing is just a small rearrange.

why keep the file includes on the main site? just to have exact copies - no
different versions, no if ($mirror)...

about cpu you are partly right (cpu power is cheep these days). but we can't
compare text include/readfile/somthing with db query/fetch/etc right? why
not use the more performant one when nothing is lost.

> There might be some arguements for caching the comments in the filesystem
> (on www.php.net), but the gains are probably not worth the hassle, IMHO.

if mirroring requires it - why not use it in both places and keep code
simple and maintainable?

b.


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to