cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

OCC extension and cache manager

2,911

Hello Experts,

At documentaion mentioned to use OCC extension as a preferable way to extend OCC.

https://help.sap.com/docs/SAP_COMMERCE/e5d7cec9064f453b84235dc582b886da/d46d19516961438f8939718e87ed...

I try it, but look like I can't find a way how to configure extra cache in this case. Here example how to do it for occaddon https://help.sap.com/docs/SAP_COMMERCE/9d346683b0084da2938be8a285c0c27a/00acb76c665940c498e49120eae7...

But looks like it's not possible to do with new architecture that SAP recomend to use, isn't it? Or do I miss something?

Best Regards,

Vitalii

View Entire Topic
ericyew94
Explorer

Hello Vitalii,

I might be answering this too late (but hopefully this would help someone else later on). I just found out about the 2211 version of the Extending Server-Side Caching documentation that works for my OCC extension. 

The cache manager definition of yours is very likely outdated for the OCC extension as I believe it was meant for the old addOn approach instead. The 2211 version of the guide is working for me. 

Eric

phoude
Participant
0 Kudos
Eric, have you done anything different than what the documentation suggest? It is not working for me. What's more, it is breaking the DefaultDataMapper class which is using the DefaultFieldSetBuilder.createFieldSet annoted with Cacheable on the fieldSetCache. Are you including your custom and OOTB caches in the ehcache.xml? My custom cache is not available.
0 Kudos

Hello,

I check that comment, but it's a general reference about how to add caching in extension. So this is not something that will work with your Controllers in OCC extension, as I can see so far.

Currently didn't know alternatives to suggested solution mentioned as accepted, see https://community.sap.com/t5/crm-and-cx-q-a/occ-extension-and-cache-manager/qaq-p/12629078/comment-i...

From time when initially post this question use it at different project.

Best Regards,

Vitalii