public static void clearResourceBlockCache(long companyId, long groupId, String name) { if (ExportImportThreadLocal.isImportInProcess() || !PermissionThreadLocal.isFlushResourceBlockEnabled(companyId, groupId, name)) { return; } _resourceBlockIdsBagCacheIndexer.removeKeys( ResourceBlockIdsBagKeyIndexEncoder.encode(companyId, groupId, name)); }