D
Darrel
I've been working on a fairly simple CMS for a fairly small site. Each page
is a DB query to grab the content for the page.
I also have some ancillary content that isn't specifically associated with
one specific page. For instance, the page footer, which is the same on every
page.
The authors can edit this content which is then stored in the DB. In terms
of retrieving it, I could query the DB on each request, or whenever the
content is changed via the admin tools, I could have it spit it out as a
text file, and then include the file with a plain-old include statement on
each page.
Performance-wise, is there a difference between the two? Is the effor to
write out the new text file from the DB worth any performance gain?
I realize this is probably hypothetic on the size of site I'm working on,
but i'd like to go ahead and use the best method if there is one.
-Darrel
is a DB query to grab the content for the page.
I also have some ancillary content that isn't specifically associated with
one specific page. For instance, the page footer, which is the same on every
page.
The authors can edit this content which is then stored in the DB. In terms
of retrieving it, I could query the DB on each request, or whenever the
content is changed via the admin tools, I could have it spit it out as a
text file, and then include the file with a plain-old include statement on
each page.
Performance-wise, is there a difference between the two? Is the effor to
write out the new text file from the DB worth any performance gain?
I realize this is probably hypothetic on the size of site I'm working on,
but i'd like to go ahead and use the best method if there is one.
-Darrel