Re: [DOC-WEB] cvs: docweb /scripts notes_stats.php

[email protected] (Vincent Gevers)
Newsgroups php.doc.web
Message-ID <[email protected]>
On Thursday 03 February 2005 16:37, Nuno Lopes wrote: 
  [cut]
>
> My main machine is a Pentium4 2 Ghz with PHP 5.1. And the program is fast
> (although slower than the original).

ah, compare that with my 800 MHz .....
>
> I think the original script was quite a mess, indentation broken,... And
> the most important thing: it had the logic broken.
> It splitted the notes by old/new in the cron job, which is wrong, because
> this is a comulative script. Over the time, older notes wouldn't be marked
> as such.
> What I've done is to create a database with all notes. This may seem a slow
> process for the first time, but following runs are faster.

true, although I was planning something to fix that over the weekend, I might 
now be able to look into the auth code and get RFC working.

It kinda annoyed me that it uses the disk a lot, making my music hang..
and using up quite some space
>
> So, the presentation code shouldn't be in the cron script. Now we have two
> choices: generate the old DB schema, collecting data from the new one; or
> simply cache the results. The orphan notes cron job generates a static
> file. The same thing could be done with this script.

Thinking some more about this script, it's usage etc
Making it a static page seems like a very good option.. that I didn't thought 
about that before.
It does require both scripts to be one, and also disables debuging, or we use 
php to write the file and still output some useful debug info :)

Vincent

>
>
> Nuno
>
>
> P.S.: As usual, I don't mind to revert my changes
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.