I'm looping through media items in a media folder, outputting them on a page where the visitor can download the media file. This is Umbraco 7.1.1.
The Razor I have is like this:
dynamic mediaFolder = new DynamicMedia(4584);
foreach(dynamic download in mediaFolder.Descendants("DownloadableDocument")){
<a href="@download.umbracoFile">
Download (@download.umbracoFile)
</a>
}
It works, but it seems that the media items are sometimes cached. Having deleted several items from the media section, they still appear in the download list on the page. I've tried republishing all content, doing a 'hard republish' via /Umbraco/dialogs/republish.aspx?xml=true, restarted website in IIS, restarted app pool, deleted everything in App_Data/cache, but nothing has worked.
Does anyone know where this cache is coming from and how to clear it?
The only things I can think of which may have anything to do with this, although unlikely, are that I have SEO Checker installed, and the folder containing the media items are protected with Media Protect.
Media items being cached
Hi,
I'm looping through media items in a media folder, outputting them on a page where the visitor can download the media file. This is Umbraco 7.1.1.
The Razor I have is like this:
It works, but it seems that the media items are sometimes cached. Having deleted several items from the media section, they still appear in the download list on the page. I've tried republishing all content, doing a 'hard republish' via /Umbraco/dialogs/republish.aspx?xml=true, restarted website in IIS, restarted app pool, deleted everything in App_Data/cache, but nothing has worked.
Does anyone know where this cache is coming from and how to clear it?
The only things I can think of which may have anything to do with this, although unlikely, are that I have SEO Checker installed, and the folder containing the media items are protected with Media Protect.
Thanks
This was a known issue, it's patched in 7.1.2
is working on a reply...