Disable Cache at Endpoint level

Disable Cache at Endpoint level

book

Article ID: KB0077580

calendar_today

Updated On:

Products Versions
TIBCO Cloud API Management -

Description

You can either use “Mashery_Proxy_Processor_CacheExpiry” Mashery connector. Using the connector on the endpoint will work to disable caching. 

Or you could have a separate service which does not use Caching feature (setup a service with endpoints that are not going to use caching. The Service TTL setting would then be set to '0'.

 

Issue/Introduction

Disabling cache at the endpoint level and at the Service Level

Resolution

How To Configure at he Endpoint

Here are the instructions on using that adapter to disable Caching for a given endpoint:

Go to the Endpoint Settings > Call Transformations Tab.

Set the Processing Adapter = Mashery_Proxy_Processor_CacheExpiry

Pre Processing Adapter = Yes

  • Caching Connectors that allows to override the Cache TTL configured in APICC.
  • Caching Connector sets ttl to 0 if no ttl value is provided for non-excluded methods configured in the pre-inputs.
  • Processing adapter : Mashery_Proxy_Processor_CacheExpiry
  • Perform Pre-processing : Yes
  • Data to make available for pre-processing (one per line)
    • exclude_methods:sampleMethod1,sampleMethod2
    • ttl:2

Note:

**This is assuming that you have no other processors in use with the specified endpoint.

**Also if you do want to specify a TTL for the given endpoint using the adapter then you would enter the [key]:[value] in the "Data to make available for pre-processing" field. The key is 'ttl' and the value would be the number of minutes. For example, ttl:5 if you want to set the TTL to 5 minutes for the endpoint.