Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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...
Solution provided in this topic.
https://our.umbraco.org/forum/templates-partial-views-and-macros/85243-preview-pdf-files-as-images-on-your-website
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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:
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
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...
Solution provided in this topic.
https://our.umbraco.org/forum/templates-partial-views-and-macros/85243-preview-pdf-files-as-images-on-your-website
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion