forum.coppermine-gallery.net
Support => Older/other versions => cpg1.3.x Support => Topic started by: AnnieB on August 01, 2004, 07:28:24 am
-
Is it possible to generate static html pages?
-
For something like Offline Album ?
No. but it has been requested often so it is on our long list of ToDo
-
no, it's for a online one
a static album would use less resources :)
any idea when it'd be available?
-
Online Album will never be static!
-
that was kinda rude
thanks anyway
-
huh? i wonder why a simple statement as above is considered rude < shrug >
-
the ! gave the rude entonation
why couldnt it be static?
-
The very nature of php is why online albums are not static. PHP allows dynamically produced content - a static page is nothing more than hard coded HTML. So... Coppermine creates dynamic pages (newest files, last updated albums, etc).
In order to produce a static page, code needs to be written that would actually create a HTML file, then dump all the output into it. So, I'm sure you can see it's no quick and easy task. And since it isn't a huge priority it's on the bottom of the list.
Hope that answers your question.
-
I never said making it was easy, I jsut said it was rude the way he put it.
The reason why I'd prefer it to generate html static is because the site is gonna be getting a lot of hits, and static would consume less resources.
That's all.
But, since it's not available, I understand, I will just keep looking
-
If you're worried about Coppermine not being able to handle the load, there are websites out there that have thousands and thousands of pictures, documents, and videos that get thousands of hits a day, and perform flawlessly. Coppermine's code is very efficient and does a great job handling many requests.
I honestly don't know how much more of a load Coppermine would put on a server compared to static HTML pages serving the same pictures.
-
http://www.ilovejackdaniels.com/php/caching-output-in-php
(but remember to exclude control panel php files)