Loading Media Takes Hours to Display

Vote:
 

Hello, I have defined a property in my model:

public virtual IList Brochures { get; set; }

In the CMS, when I try to pull in a .pdf from the media tab and publish, it is taking several hours before it appears on the website. However, if I restart the app pool, it shows right away. Could this be a caching problem? If so, what are the settings in the web.config I need to concentrate on?

Thanks.

#184671
Nov 02, 2017 0:36
Vote:
 

Sounds like a cache invalidation problem(if you have multiple servers that is).
https://world.episerver.com/documentation/developer-guides/CMS/event-management/WCF-event-management/

#184725
Edited, Nov 02, 2017 14:24
Vote:
 

Thank you for your reply. We do not use multiple servers unfortunately. Also, it refreshes immediately on my local instance. I've compared the web.config settings and don't see anything that could cause the delay. 

#184737
Nov 02, 2017 19:15
Vote:
 

Are you using OutputCache by any chance? :)

#184738
Nov 02, 2017 19:17
Vote:
 

We are. Here is what is looks like:

      <outputCacheSettings>
        <outputCacheProfiles>
          <add name="ClientResourceCache" enabled="true" duration="3600" varyByParam="*" varyByContentEncoding="gzip;deflate" />
        </outputCacheProfiles>
      </outputCacheSettings>
#184739
Nov 02, 2017 19:20
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.