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

  • SEARCH
  • Home
  • 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 215903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:30:52+00:00 2026-05-11T18:30:52+00:00

The thing I have a web app (asp.net) which needs to have a feed.

  • 0

The thing I have a web app (asp.net) which needs to have a feed. So I used the System.ServiceModel.Syndication namespace to create the function that creates the ‘news’. The thing is it executes everytime somebody calls it, should I use it just to create an xml file and make my rss url point to the file?

What’s the best approach?

Edit: Maybe that’s where I’m wrong. I’m not using a handler… I’m just using a WCF service returning a Rss20FeedFormatter with the data.

  • 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-11T18:30:52+00:00Added an answer on May 11, 2026 at 6:30 pm

    In the past when I have implemented RSS I cached the RSS data in the HttpContext.Current.Cache.

    RSS data usually doesn’t have to get updated that often (eg. once a minute is more than enough) so you would only have to actually hit the DB once every minute instead of every single time someone requests your RSS data.

    Here is an example of how to use the cache:

    // To save to the cache
    HttpContext.Current.Cache.Insert("YourCachedName", pObjectToCache, null, DateTime.UtcNow.AddMinutes(1), System.Web.Caching.Cache.NoSlidingExpiration);
    // To fetch from the cache
    YourRssObject pObject = HttpContext.Current.Cache[("YourCachedName"] as YourRssObject : null;
    

    You could also set the following in your ashx:

    context.Response.Cache.SetExpires(DateTime.Now.AddMinutes(1));
    

    This will make your RSS page serve up a cached version until it expires. This takes even less resources but if you have other things that use your RSS data access layer calls then this will not cache that data.

    You can also make it cache based on a query param that your RSS might receive as well by setting:

    context.Response.Cache.VaryByParams["YourQueryParamName"] = true;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a load balanced (NLB) ASP.NET web app which sends email. The servers
We have an ASP.NET MVC web app which allows users to publish messages onto
I have two web applications in ASP.NET which are quite the same (same business
I have had experience in asp.net(vb.net) and I'm am looking to create business web
I have created an ASP.NET Webforms web application which basically inetracts with the code
I have a custom Principal/Identity for my ASP.NET MVC4 web app. I have also
I'm working on a ASP.NET MVC2 project, for which I have configured the localisation
I have my iPhone app that calls an ASP.NET Webservice to download data. Most
I am trying to migrate a simple WinForms app to a ASP.Net web app.
I have an ASP.net 1.1 application. In a sub-folder, I've installed blogengine.net, which is

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.