Does anyone have experience with caching with containers? Is it advisable to move the cache to a volume for example? I already have images stored in a bind mount on the host, and I figured it would be good to also store the cache outside the container to prevent images of being cropped on every first request after a restart.
I am just starting to dabble with containers, but yes absolutely I have the umbraco/Data
directory in a volume, as well as umbraco/Logs
and wwwroot/media
. I don’t want to loose any of that when I rebuild the container.
I guess it’s fine not to have the disk cache outside of the container but it will make your application boot take a lot longer because it needs to rebuild everything.
We’re hosting in azure and all media and media cache is in a blob storage. So it’s outside the container. Which I think is where it should be anyway.
Thanks! Yeah I already had the media in a bind mount, altough I am reconsidering just using a volume due to issues I had with write permissions. I just added the volumes for the cache and logs.
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.