Hello, I'm writing a web site (C#, ASP 3.5) while implementing a simple CMS. In several limited places - I allow the site admin to manage the page content.
Editing the content is done by an Edit control - the output HTML is stored in the database (SqlServer Express).
Each time a page loads - I read the page HTML content from the db and print it on screen.
As for now (development stage) everything works fine and smoothly.
But, I'm a bit afraid of performance issues in the real world (too many db calls ?).
I'm looking for the optimal solution for caching the dynamic HTML pages: Assuming the page content will NOT be update frequently, Should I :
- Keep the solution as done today - call the db for the dynamic page content on each page load (if !IsPostBack)
- Store the page content on file and read it from disk
- Store the page content on Application variables.
- Other idea ?
I assume that the page content, i.e. the HTML text - is not too long.
Thanks