Clearing Rule Cache in Pega Without Admin Support or Downtime

In many Pega environments, developers often request admin support to clear the rule cache at the node level. This process sometimes requires coordination with the operations team and may even introduce unnecessary downtime.

However, Pega provides an out-of-the-box REST API that allows developers to clear the rule cache directly from Dev Studio, without requiring administrator intervention.

This makes cache management much faster and avoids operational dependencies.


OOTB REST API to Clear Rule Cache

Pega provides the following REST service:

/api/v1/nodes/{identifier}/caches/rule/clear

Steps to Execute

  1. Open Dev Studio.

  2. Navigate to Resources → Services → REST Services.

  3. Locate the OOTB service endpoint:
    /api/v1/nodes/{identifier}/caches/rule/clear

  4. Provide the following parameter:

Parameter Value
identifier all

Using all ensures that the rule cache is cleared across all nodes in the cluster.

  1. Select the POST method.

  2. Click Run.

System, Provides result as

2 Likes