cancel
Showing results for 
Search instead for 
Did you mean: 

How to cache a subtype of Media

adam_dryglak
Explorer
0 Kudos

Hi,

we have the problem that the defaultMediaCacheRegion is not working. It will be created but there are no items shown as cached in the monitoring. All other regions working as expected. We are using a subtype of Media (without a specific deployment table) for our medias. So i guess that the defaultMediaCacheRegion don´t cache any subtypes.

So the question is, is there any possibility to let the defaultMediaCacheRegion also cache the subtype of Media?

PS: The option to specify a extra deployment table for the subtype, it's out of the question, because we are talking over a productive system.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

If you are using the local file media storage strategy, then, this is the normal behaviour. The media cache region locally stores (caches) remote files (physical files). If they are available locally, then, there is no need to cache these items in the specified folder. Therefore, this is really only used for media storage strategies where medias are stored remotely.

adam_dryglak
Explorer
0 Kudos

So it is the normal behaviour, thanks. It was a little bit confusing to see a not working cache region 😉

Regards, Adam

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Adam,

You could create a custom cacheregion. Have you checked this page?

https://wiki.hybris.com/display/release5/Region+Cache#RegionCache-AddingNewCacheRegion

Regards, Eduard

adam_dryglak
Explorer
0 Kudos

Hi Eduard,

i know that i can create a custom cache region, but the problem is that the media type we are using at the moment, is a subtype of media and don't have a extra deployment table. So i don't have a separate typecode, but i need a typecode to specify which type should be cached in a custom cache region. I thought that a subtype will be also cached, because it is in the same table, but unfortunately it isn't so.

Regards, Adam