Copied to clipboard

Flag this post as spam?

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


  • DonZalmrol 220 posts 833 karma points
    Apr 18, 2017 @ 10:05
    DonZalmrol
    0

    Media folders are growing beyond control

    Hi all,

    So it seems that our website is experiencing caching issue in which a PDF is opened by an user on the site.

    This PDF creates a cached file in the form of "u3dtncra.pdf" and other variations at random.

    The cached file is then presented to the user.

    So since we have heavy traffic during press releases this is filling up our webstorage fast.

    How can I stop this?

    Umbraco is set up to show the PDF embeded in the site like so:

    @foreach(var temp in myList.Select((value,i) => new {i, value}))
    {   
        if(@temp.i == 1)
        {
    
            if(@temp.value == null)
            {
                <p>No image</p>
            }
    
            else
            {
                <td class="col-sm-2">
                    <a href="@item.Url">
                        <img height="100" width="100" class="img-rounded img-responsive" src="@Umbraco.TypedMedia(@temp.value).GetPdfThumbnails()"/>
                    </a>
                </td>
            }
        }
    }
    

    It works without any problems, the PDF shows itself nicely, but the caching is filling the drive.

    Any ideas on how I can disable the caching?

    Thank you,

    Laurens

  • DonZalmrol 220 posts 833 karma points
    Apr 18, 2017 @ 12:27
    DonZalmrol
    0

    Aha, seems it is coming from one of my plugins (Pdf Thumbnail). I'm going to discuss it with Yakov the developer of it.

    https://our.umbraco.org/projects/backoffice-extensions/pdf-thumbnail/

    seems that the code keeps activating to generate a thumbnail. But it fails and leaves the temp-pdf in the media folder.

    This results in the code repeating over and over again and so filling up the whole drive...

  • DonZalmrol 220 posts 833 karma points
    Apr 26, 2017 @ 08:03
Please Sign in or register to post replies

Write your reply to:

Draft