I am working on a site were users can read files from a mediafile folder. I am using a Razor mediafile reader to do this and it is working fine. My problem is when a admin is deleting a file it is removed from the mediafilefolder but its still shown in my reader.... After 30 min or so the file are gone.
Delete mediafile permently
Hello forum
I am working on a site were users can read files from a mediafile folder. I am using a Razor mediafile reader to do this and it is working fine. My problem is when a admin is deleting a file it is removed from the mediafilefolder but its still shown in my reader.... After 30 min or so the file are gone.
Hope somebody out there have a solution to how to delete the file permently or read a deleted property or something.
Best regards Jakob
If you delete a media item it's first moved to the bin folder. Only after emptying the bin the media item will be deleted for real.
Jeroen
Hello Jeroen
Thank you for your reply.
I just found this in the UmbracoSettings.config
<!-- Cache cycle of Media and Member data fetched from the umbraco.library methods -->
<!-- In seconds. 0 will disable cache -->
<UmbracoLibraryCacheDuration>0</UmbracoLibraryCacheDuration
>
Disable the cache solved my problem.
Jakob
is working on a reply...