Usage of gs.cacheFlush() on Scripts

Impact area

Performance

Severity

High

Affected element

All Scripting component

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

What's here


Related content

ServiceNow rules





Last modified on Feb 20, 2024