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
CMS Advice
Moderator: General Moderators
- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact:
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.
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.