Context

In my Sitecore (8.2.u7) instance I have 2 websites that share the same images. For this reason, I have setup Media.MediaLinkServerUrl e.g. cdn.mysite.com. This will also help me to integrate with an external CDN provider.

I have also created a virtual Directory named "MediaCache" inside \App_Data\ that points to a local path. (for internal reasons)

Objectives

I want to setup both sites to use the same cache folder e.g. \App_data\MediaCache\Common

Actions

I tried with the following settings:

  • (Sitecore setting) Media.CacheFolder = "/App_Data/MediaCache"
  • (site) mediaCachePath = "/App_Data/MediaCache/Common"

But the result was the images to be stored under a "website" folder that actually points to the default "website" Sitecore site. ("/App_data/MediaCache/website")

The only thing I can think is that because I have specified an url for the media library items and there is no relevant site for them, then they are stored under the default website.

Question

Is this true or I do something wrong?

Thanks in advance,

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.