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
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.
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.
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
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
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
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
is working on a reply...