Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3956764
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:24:19+00:00 2026-05-20T02:24:19+00:00

As an extensibility option for my web application I would like to allow the

  • 0

As an extensibility option for my web application I would like to allow the user to add sections to it by simply making new folders and uploading files to them. So, for instance, if they created (in the webroot):

/UserContent/StaticPages/First/Second/index.txt

Then in the main menu there would be a new menu point “First” with the submenu point “Second”, which would lead to markdown-parsed version of index.txt. This way the user can upload any static menu points he wants (such as “About us”, “Contact us”, “Our Mission” etc.)

Another extensibility point is that I would like them to add headers/footers to specific webpages in a similar fashion. I’m using ASP.NET MVC3, so there are pretty URLs, and it would be easy for the user to just create:

/UserContent/Additions/Store/Categories/35/header.txt

And when someone opened www.mydomain.com/Store/Categories/35 the markdown-parsed header.txt would be prepended.

This is simple for the user, and simple for me (I don’t need to make sophisticated admin panels and WYSIWYG editors).

However I’m worried about the performance. This scheme means that on each GET request I would need to scan the /UserContent/StaticPages folder and check for the existences of the header/footer files (several, because parent levels can have their header.txt/footer.txt as well).

I could cache the result, but then I have to manage the cache and the user will need to know that changes can take up to X minutes to display. Would this be a premature optimization? There won’t be much data in those folders, so Windows will probably be able to easily cache their contents itself.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T02:24:20+00:00Added an answer on May 20, 2026 at 2:24 am

    You should take some measurements to see if the performance becomes too bad.

    From my experience you should not try too hard to make everything as fast as possible NOW (i.e. don’t waste too much time if you don’t know yet that it’s worth it). But choose a way that more or less doesn’t prevent doing it later. So e.g. don’t use instances of File all over your code because that means a lot of work for you later on if you have to change the approach. Find some thin abstractions where you are worried about the specific approach.

    Try profiling some typical use cases with the expected usage volume (load tests) and you may soon know if and what you need to optimize.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently involved with developing a C# CMS-like web application which will be used
Given demo solution with two VSX-projects: 1. Add New Project -> Extensibility -> Item
Has anyone worked much with Microsoft's Managed Extensibility Framework (MEF)? Kinda sounds like it's
Managed Extensibility Framework is the new feature of .net 4.0. What is it ?
The recently announced managed extensibility framework (MEF) of .NET 4.0 - is it a
Is there a general procedure for programming extensibility capability into your code? I am
What problems does MEF (Managed Extensibility Framework) solves that cannot be solved by existing
I'm working on Visual Studio Extensibility and I need to set the shell language
Possible Duplicate: Choosing between MEF and MAF (System.AddIn) Is the Managed Extensibility Framework a
Anyone pretty familiar with FTP 7.5 extensibility in IIS know what I might be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.