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.
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.