Copied to clipboard

Flag this post as spam?

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


  • Marshall Penn 79 posts 260 karma points
    Mar 06, 2024 @ 14:39
    Marshall Penn
    0

    The cache folder in my Azure Blob Storage is empty, yet i have added "AddAzureBlobImageSharpCache"

    On a new Umbraco 13 site with the media stored in Azure blob storage, no files are being created in the cache Container:

    Blob Container grab

    The blob media is working correctly, and we configured the UmbracoBuilder like so:

    Builder grab

    I was under the impression that ImageSharp would read the Blob settings from appsettings and did not need seperate configuration - but am i wrong? I tried removing the "ContainerRootPath" from appsettings, but then i got no images at all.

    appsettings grab

    On my workstation - and on the Linux web app the mediacache is in the app, rather than the blob storage it seems:

    enter image description here

    What am i missing here?

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Mar 06, 2024 @ 15:51
    Jeavon Leopold
    100

    If you change your container name to "MyWebsite", inside that container you will find "media" and "cache" folders.

    You might find a "cache" folder inside your current "Media" container alongside a nested "media" folder?

  • Marshall Penn 79 posts 260 karma points
    Mar 06, 2024 @ 17:16
    Marshall Penn
    0

    Indeed !!! the cache folder was inside the media Blob Container all along. Thanks Jeavon!

    blob grab

    Its an upgrade, if you were wondering about the numbers.

    Is there any way to have it so the "cache" container is at the same level as "media" ?

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Mar 06, 2024 @ 18:35
    Jeavon Leopold
    1

    Yes, you can,

    builder.AddAzureBlobFileSystem("Cache").AddAzureBlobImageSharpCache("Cache");
    

    Then in appsettings.json add the "Cache" settings

    e.g.

    "Storage": {
      "AzureBlob": {
        "Media": {
          "ConnectionString": "DefaultEndpointsProtocol=https;AccountName=",
          "ContainerName": "testing123"
        },
        "Cache": {
          "ConnectionString": "DefaultEndpointsProtocol=https;AccountName=",
          "ContainerName": "cache",
          "VirtualPath": "cache"
        }
      }
    },
    
Please Sign in or register to post replies

Write your reply to:

Draft