If the content ultimately resides in the DB, I'd avoid spitting out
the text files - that might be messy to clean up and the performance
gain would not be worth the effort.
A simpler solution would be to use memory caching (I'm assuming the
content is relatively small). You could keep the content itself in the
cache as a string to write into the page, or you could place the
content into a user control and use partial page caching.
Some more caching info:
http://msdn.microsoft.com/library/de...sbestpract.asp
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Wed, 10 Nov 2004 22:22:25 -0600, "Darrel" <>
wrote:
>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
>