Skip to content

Change: move permission cache to dedicated files#2748

Merged
greenbonebot merged 1 commit intomainfrom
perm-cache-files-1
Jan 30, 2026
Merged

Change: move permission cache to dedicated files#2748
greenbonebot merged 1 commit intomainfrom
perm-cache-files-1

Conversation

@mattmundell
Copy link
Contributor

What

Move the permission cache code out of manage_sql.c.

Why

Next step in reducing size of manage_sql.c.

References

Follows /pull/2745 for permissions.

Testing

  cache_permissions_for_resource
    clone task, cache count incr
  cache_all_permissions_for_users
    --optimize rebuild-permissions-cache, watch cache count incr
  delete_permissions_cache_for_resource
    ultimate del task, cache count decr
  delete_permissions_cache_for_user
    rm user, cach count desr

@mattmundell mattmundell requested review from a team as code owners January 30, 2026 10:45
@greenbonebot greenbonebot enabled auto-merge (rebase) January 30, 2026 10:45
@greenbonebot greenbonebot merged commit 4a0bc2e into main Jan 30, 2026
31 of 32 checks passed
@greenbonebot greenbonebot deleted the perm-cache-files-1 branch January 30, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants