Gossamer Forum
Quote Reply
Static Reviews Page
Afternoon,

Is there a way to generate static link reviews instead of having to use the review.cgi? So instead of clicking on the link that send review.cgi off with the ID number, there is just a link to a static page containing all the reviews of that site? I know this would increase the number of pages on the site, but it should take a little more pressuse of the web server (not much however).

Thanks
Scampi.

-----------------------------------------------------
A Little Madness Now And Then,
Is Relished By The Wisest Men
- Mr Willy Wonka
-----------------------------------------------------
Quote Reply
Re: [Scampi] Static Reviews Page In reply to
There isn't a feature to do this. In the long run, I think it would cause more stress on the server having to generate that many static files, compared to simply calling reviews.cgi a few times. All depends on your server traffic. The only way you are going to be able to get reviews built into static pages, is to write a hack, or get someone to write one for you. Its not an easy task though :(

Cheers

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!
Quote Reply
Re: [Andy] Static Reviews Page In reply to
Cool, thats all I needed to know, thanks for your help.
Scampi.

-----------------------------------------------------
A Little Madness Now And Then,
Is Relished By The Wisest Men
- Mr Willy Wonka
-----------------------------------------------------
Quote Reply
Re: [Scampi] Static Reviews Page In reply to
You can use my PageBuilder plugin to do this. You can have it generate an additional page for every link, and on that page you can list all the reviews for the link.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [Andy] Static Reviews Page In reply to
Andy;

That is not true at all.

Maybe I can give a shot at explaining this.

The reason for static files is to reduce the load on the server, not the other way around, so you are dead wrong.

Let me explain it this way:

No matter how a site is programmed, when a html or cgi file is requested, the server sends the same amount of data down to the browser.

If the page is fully static, the webserver sends a header, gets a response, then sends the rest of the web page without doing cgi and additionally loading down the server. Busy sites use static pages typically, as they can server far more pages on a static basis.

Caching: Busy static pages end up being cached in memory by the webserver software, anyways, increasing performance. But a cgi built / dynamic page is never cached, it is built fresh each time.

Typically, on a static website, when the front page of the site is cached, and the 2nd or 3rd busyist also, the activity on the hard drive - "stress as you call it" will decrease by 50%-80%.

A dynamic page is "custom built to order" each and every time it is requested, and all the cgi routines having to do with the page are run again, Perl loaded again (if not using mod perl) and executed multiple times per page over and over again.

Also with mod Perl, etc, the Perl interpeter module will reside in memory, instead of being loaded multiple times per page, and the Perl routines needed by each web page can also then be cached in memory, resulting in a decrease of CPU load by a factor of 5-20! (CPU "stress")

Back to dynamic/ cgi pages: As these pages do not exist on the servers hard drive or memory cache, they are built by accessing the server's hard drive, then loading up cgi/Perl and required modules, executing the CGI to build the page in memory, and spitting the data down to the browser. That's a lot of work!

To boil it down, Static takes more space on the server's hard drive and is not as up to date, dynamic takes more cpu cycles and is slower, but more flexible.

And the more CGI routines a dynamic page needs in order to be built, the quicker it gets when it is static and cachable.

Static pages with includes are a hybrid.

And Pagebuilder ROCKS - part of its function and reason for existence is to take pages that would normally be dynamic (more cpu time), and make them static (faster and less server load).

Add in your CHRON plugin, and it becomes even more flexible.

Last edited by:

webslicer: Jul 2, 2003, 6:45 AM