Version: eXtendPS-SE 1.4.1 and above
Audience: Administrator

Overview

PromoStandards service responses can be time-consuming as they involve live queries on your NetSuite instance. To improve response times, eXtendPS-SE can cache service responses after the first request, making future responses faster.

The caching feature provides these benefits:

  • Reduces the time needed to fetch responses
  • Resolves connection time-out errors during large responses

Services that support caching:

  • Product Data 1.0.0
  • Product Data 2.0.0

Configuration

There are two caching methods available:

  • eXtendTech Hosted Caching
  • NetSuite Level Caching

eXtendTech Hosted Caching

Setup

To enable this caching method, enable the eXtendPS-SE Cache Response preference on the eXtendPS-SE Setup page.

Image Placeholder

How it works

Product Data responses are cached by eXtendPS-SE. The cache is created when the first request is made, and subsequent requests are served from the cache.

Supported requests:

  • getProduct
  • getProductSellable

Note: Requests with a size filter will not be cached.

Additional details

View live response instead of cache

To view a live response instead of a cached response, add ?__no_cache=1 to the end of the endpoint URL. This is useful for debugging purposes.

Cache refresh time

Cached data is automatically cleared every three days.

Updating cache in real-time

To manually update the cached response before it's cleared or regenerated, use the ?__no_cache=1 URL parameter. This provides a live response and updates the cache. If the live response encounters errors, the cached response remains unchanged.

NetSuite Level Caching

Setup

Setup configuration

Enable Cache Sellable Response in the Product Data setup. See Create and Enable getProductSellable Cache for more details.

Image Placeholder

Map/Reduce script deployment

Create a scheduled deployment of eXtendPS-SE Cache Sellable Product Data (customscript_extend_psse_cache_prod_data) as needed. When this script runs, it creates records in eXtendPS-SE Product Data Sellable Cache (customrecord_extend_psse_pd_sellable_cac).

Configuration notes:

  • Default page size is 50 (if not configured on the setup screen)
  • Default maximum items to be cached is 10,000 (if not configured on the setup screen)
  • Separate deployments are required for Product Data version 1.0.0 and 2.0.0:
    • Use the script parameter "eXtendPS-SE Product Data Service Name". If not provided, the script defaults to Product Data 1.0.0.
      • For Product Data version 1.0.0, use: product data 1.0.0
      • For Product Data version 2.0.0, use: product data 2.0.0

How it works

Cache records in eXtendPS-SE Product Data Sellable Cache (customrecord_extend_psse_pd_sellable_cac) are used for responses. If no cache record exists, a live response is sent. Cache records are updated when the Map/Reduce script runs.

Supported requests: This method only supports getProductSellable requests.

Additional details

  • To update cache data, run the Map/Reduce script eXtendPS-SE Cache Sellable Product Data.
  • If eXtendTech hosted caching is enabled, responses are always sent from the eXtendPS-SE cache, even if Cache Sellable Response is enabled in the Product Data setup.