Welcome to Zuora Product Documentation

Explore our rich library of product information

Add a cache rule

Learn how to add a cache rule by following a series of steps, including selecting options and entering specific details.

  1. Select the Add a Cache Rule button. The Add a Cache Rule dialog box displays.
  2. Enter the name of the rule in the Title text box.
  3. Enter the path on which you want to apply the rule in the URL Path text box.
    Note: You can use regular expressions in the URL path. Use full Java regular expression matching (String.matches), requiring an exact match against the entire path.

    Include them as provided in the following examples:

    • /breaking-news - matches that path exactly

    • .*/breaking-news — matches paths that end with /breaking-news

    • /breaking-news/.* - matches /breaking-news and any sub-path under it

    Unlike Redirect URL rules, cache rules do not support substring matching. Enter a regular expression that describes the full path pattern you want to match.

  4. Select the Disable origin cache checkbox to exclude the URL path from the default cache period.
  5. Select Disable user attribute cache to use the latest values from user attributes. For example, if a user edits information that is stored in a user attribute and refreshes the page, the updated information is used if this checkbox is selected.
  6. Click Save .