Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Build with Dynamic?

Quote Reply
Build with Dynamic?
As I am still in the process of setting up my Links SQL with the dynamic interface I've just come across something I consider to be strange.. I have to build the directory in order for the new page to display the latest listings.

Is there a way that I'm not aware of, that will allow all of the updating that needs to be done without building the directory? I mean, a script that goes through the motions of nph-build.cgi by updating all the necessary info and backing up the database, but not actually building any pages? It doesn't make sense to use a dynamic front end and have a whole directory of pages sitting somewhere else on the server.

Regards,
Mandi
Quote Reply
Re: [Evoken] Build with Dynamic? In reply to
Are you adding d=1 to the end of the page.cgi when calling it? d = dynamic Wink

EDIT: Just realised we are in the PHP forum..are you using page.cgi or page.php?

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: May 29, 2002, 3:20 AM
Quote Reply
Re: [Andy] Build with Dynamic? In reply to
I'm using page.php Tongue.

Just as an example, I've added one new link for May 29. It appeared immediately as you would expect, but the number of new days was wrong - in the admin, I have "new days" set to 13 (because I was playing around with it), so the last "new" page should have been May 16, but it was still May 15. But after I built the directory, and all the flags and counts were updated, the correct last "new" page was being displayed as May 16.

I took a look at nph-build.cgi thinking that I could hack the staggered build to just do the first two stages and not continue with the rest - but it looked a bit complicated and way beyond my ability of "non" programming skills.

Regards,
Mandi

Last edited by:

Evoken: May 29, 2002, 4:10 AM
Quote Reply
Re: [Evoken] Build with Dynamic? In reply to
Hi,

If you are going all dynamic, you should run:

nph-build.cgi --repair

once a day to update flags, new and cool counts. This isn't done every request to speed things up.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Build with Dynamic? In reply to
Okie dokie, I'll do that. Thanks Alex!

I didn't expect all the counts to be updated whenever a request was made, I just wanted to be able to update the counts and flags without building a directory. Smile

Regards,
Mandi