---
title: Usage Of gs.cacheFlush() On Scripts
description: "Impact Area Performance   Severity High   Affected Element All Scripting components Inline Script ## Rule ID **SN-0411** ## Impact  The cache flush has a very high performance cost leading to potential system degradation during the rebuild. Recommended is only…"
url: "https://community-staging.qualityclouds.com/qcdocs/qcr/rules/usage-of-gs-cacheflush-on-scripts/"
updated: "2025-03-21"
category: Rules
---

# Usage Of gs.cacheFlush() On Scripts

Impact Area

Performance

 

           Severity

High

 

           Affected Element

All Scripting components

Inline Script

## Rule ID

**SN-0411**

## Impact

 The cache flush has a very high performance cost leading to potential system degradation during the rebuild. Recommended is only the pre-defined cache flush actions that are built into out the box solutions.

## Remediation

Do not use gs.cacheFlush() in scripts. During core business hours, avoid or minimize any actions that will cause a purge and rebuild of the instance cache.

### Time to fix

40 min
