Re: Rsync and CVS

From: Date: Tue, 06 Mar 2001 22:44:07 +0000
Subject: Re: Rsync and CVS
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-48102@lists.php.net to get a copy of this message
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.

« previous php.dev (#48102) next »