Skip to content

Commit d184e34

Browse files
groups
1 parent 5dce35e commit d184e34

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-CIPPDBCacheData.ps1

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,23 @@ function Push-CIPPDBCacheData {
3535
# Build grouped collection tasks — one activity per license category instead of one per cache type
3636
$Tasks = [System.Collections.Generic.List[object]]::new()
3737

38-
# Graph collection always runs (no special license needed) — 26 cache types in one activity
38+
# Graph collection always runs (no special license needed) — 25 cache types in one activity
3939
$Tasks.Add(@{
4040
FunctionName = 'ExecCIPPDBCache'
4141
CollectionType = 'Graph'
4242
TenantFilter = $TenantFilter
4343
QueueId = $QueueId
4444
QueueName = "DB Cache Graph - $TenantFilter"
4545
})
46+
# MFAState runs as its own activity — it makes 6+ API calls, bulk group/role member
47+
# resolution, and O(users × policies) CPU work that can take minutes on large tenants
48+
$Tasks.Add(@{
49+
FunctionName = 'ExecCIPPDBCache'
50+
Name = 'MFAState'
51+
TenantFilter = $TenantFilter
52+
QueueId = $QueueId
53+
QueueName = "DB Cache MFAState - $TenantFilter"
54+
})
4655

4756
# Exchange collections — split into config (quick policy calls), data (usage reports), and mailboxes (heavy, spawns permission/rule child orchestrators)
4857
if ($ExchangeCapable) {

Modules/CIPPCore/Public/Invoke-CIPPDBCacheCollection.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ function Invoke-CIPPDBCacheCollection {
6767
'OAuth2PermissionGrants'
6868
'AppRoleAssignments'
6969
'LicenseOverview'
70-
'MFAState'
7170
'BitlockerKeys'
7271
)
7372
ExchangeConfig = @(

0 commit comments

Comments
 (0)