API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Assistance Required for Implementing Caching in IBM API Connect v10.0.5

    Posted Wed April 09, 2025 06:29 AM

    Hi Team,

    I have a requirement to implement caching in IBM API Connect v10.0.5 to avoid backend calls for a specific duration. I attempted to use the Invoke policy by configuring the Time To Live (TTL) to 60 seconds, but it didn't work as expected.

    Could you please confirm if any additional configuration is required at the DataPower level to enable caching functionality? Your assistance on this would be greatly appreciated.



    ------------------------------
    Manideep vusakoila
    ------------------------------


  • 2.  RE: Assistance Required for Implementing Caching in IBM API Connect v10.0.5

    Posted Wed April 09, 2025 06:46 AM
    Hi,

    Check if you are having Authorization Http header towards invoke. If exist cache doesn't work.





  • 3.  RE: Assistance Required for Implementing Caching in IBM API Connect v10.0.5

    Posted Thu April 10, 2025 02:56 AM

    Hi,

    A couple of tips:

    • You need to add "cache-putpost-response: true" as property of the invoke (add it via the source of the API code in API Manager - Develop)
    • The OAS does not allow the use of basic auth with caching (a username / password) in the Invoke parameters so ensure they are cleared.
    • Caching for API Connect should only be controlled at an API level not at a DataPower level. Any DataPower side caching is managed with internally by publishing the APIs to DataPower.
    • The Invoke spec: https://www.ibm.com/docs/en/api-connect/10.0.8_lts?topic=execute-invoke


    ------------------------------
    Nick Cawood
    API Connect Consultant
    IBM Expert Labs
    IBM UK Ltd

    https://www.linkedin.com/in/nickcawood/
    ------------------------------



  • 4.  RE: Assistance Required for Implementing Caching in IBM API Connect v10.0.5

    Posted Thu April 10, 2025 02:57 AM

    10.0.5 version of the Invoke spec: https://www.ibm.com/docs/en/api-connect/10.0.5.x_lts?topic=execute-invoke



    ------------------------------
    Nick Cawood
    API Connect Consultant
    IBM Expert Labs
    IBM UK Ltd

    https://www.linkedin.com/in/nickcawood/
    ------------------------------



  • 5.  RE: Assistance Required for Implementing Caching in IBM API Connect v10.0.5

    Posted Thu April 10, 2025 02:27 AM

    hi Manideep,

    You need to provide the cacheKey value inside invoke action. The same cacheKey value you can find inside the DataPower appliance, if you search for "API document status"



    ------------------------------
    Nirmalya Mukherjee
    ------------------------------



  • 6.  RE: Assistance Required for Implementing Caching in IBM API Connect v10.0.5

    Posted Fri April 11, 2025 03:46 AM

    Hi Nirmala,

    Thank you for your response.

    We have already provided the cacheKey value inside the Invoke action. However, we are unable to find any corresponding cacheKey entry in the DataPower appliance under API Document Status.

    Could you please help us understand if any additional configuration is required or if we are missing something?

    ---Manideep Vusakoila



    ------------------------------
    Manideep vusakoila
    ------------------------------