Copied to clipboard

Flag this post as spam?

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


  • Dan 1288 posts 3921 karma points c-trib
    May 18, 2014 @ 22:59
    Dan
    0

    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:

    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.

    Thanks

  • Chad 66 posts 130 karma points c-trib
    May 19, 2014 @ 07:39
    Chad
    100

    Having deleted several items from the media section, they still appear in the download list on the page

    This was a known issue, it's patched in 7.1.2

Please Sign in or register to post replies

Write your reply to:

Draft