CMS Advice

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
cwcollins
Forum Commoner
Posts: 79
Joined: Thu May 16, 2002 3:51 pm
Location: Milwaukee, WI, USA

CMS Advice

Post by cwcollins »

hey,
I am beginning development of a content management application for my organization's extra/intranet and i am looking for a little feedback on my approach. Particulary dynamic vs. generated pages.

There are two methods i am considering:

1- when users create or update pages, all data goes into the database and waits for approval. once changes are approved, the page is marked as 'live'. each time a visitor requests the page it is built on-the-fly and sent to the browser.

2- when users create or update pages, all data goes into the database and waits for approval. once changes are approved, the a (technically) static page is created on the server. This page can/will still contain some dynamic elements (current date, announcements, etc... small stuff)

i am currently leaning towards the second approach, as i am unsure of the level of traffic we will be getting, and this seems like it would be lighter on the database server, and faster.

i'd appreciate any feedback on this.

-c.w.collins
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post by mydimension »

where you are unsure as to the traffic possibilities it would probably be best to create the static pages after approval.
Aaron
Forum Commoner
Posts: 82
Joined: Sun May 12, 2002 2:51 pm

Post by Aaron »

1.
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

I still do everything dynamic on my website, and everything here is dynamic as well.

Sure, non-dynamic will be faster with less load, however, it also requires more maintenance. You will have a copy in the MySQL server, as well as a file itself. You also have all the file be writable, which is a potential security hazard (note the keyword, "potential").

The only thing I can see is that if you are still doing calls to the database for elements, leaving out one call, the content, won't really make much of a difference.
Post Reply