Skip to Content

How to cache a subtype of Media

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 11, 2015 at 03:22 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 09, 2015 at 02:45 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.