Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bobby 43 posts 63 karma points
    Oct 17, 2011 @ 08:08
    Bobby
    0

    Caching an Rss Feed

    Hi ,

    I have a situation in which i need to cache an RSS feed which lists out all the necessary information used in my project.I need to create a caching solution for this data so that it is not requested each time a user loads the page.  As the full xml file is just over 1MB of data.

    I am using Umbraco 4.5.2 version and .Net 3.5 framework

    Can anyone help me on the solution for this.

     

    Thanks,

    Bobby

  • Richard Soeteman 3808 posts 11792 karma points MVP
    Oct 17, 2011 @ 08:25
    Richard Soeteman
    0

    Hi Bobby,

    When you create the Macro in Umbraco set the Cache Period  to the amount of seconds you want to cache the result.

    Hope this helps you,

    Richard

  • Bobby 43 posts 63 karma points
    Oct 17, 2011 @ 09:03
    Bobby
    0

    Hi Richard,

     

    Thanks for the quick response.I have done what you have suggested and placed the amount of seconds in my macro. Can you please suggest me how i can test it that the application is not reterving the data from the server and getting the value from the cache.

     

    Thanks,

    Bobby

  • Richard Soeteman 3808 posts 11792 karma points MVP
    Oct 17, 2011 @ 09:11
    Richard Soeteman
    0

    Hi Bobby,

    Caching will work out of the box, but if you want to test it I think you can add the queryparameter ?umbdebugshowtrace=true to the page and it will say that it got the macro from cache.

    Cheers,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft