Skip to content

FOUR-32256 [SPIKE] Analisis in the pages mentioned in the IDEA-1400 a…#8914

Open
gproly wants to merge 1 commit into
developfrom
feature/FOUR-32256
Open

FOUR-32256 [SPIKE] Analisis in the pages mentioned in the IDEA-1400 a…#8914
gproly wants to merge 1 commit into
developfrom
feature/FOUR-32256

Conversation

@gproly

@gproly gproly commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

…nd add the reason for the delay in the pages mentioned.

Description:
Reduce duplicate permission queries on menu and auth checks.

Cache permission names via Permission::cachedNames() and user permission groups via User::cachedPermissionGroups(), with invalidation through PermissionCacheService. Replaces repeated permissions()->pluck('group') and Permission::all() calls in GenerateMenus, User, and AuthServiceProvider.

Going forward: memoize repeated reads per request with once(), batch related data with eager load/preload, and use Cache::remember only for cross-request data with explicit invalidation on writes.

Related tickets:
https://processmaker.atlassian.net/browse/FOUR-32256

ci:package-dynamic-ui:feature/FOUR-32256
ci:package-projects:feature/FOUR-32256
ci:package-savedsearch:feature/FOUR-32256
ci:deploy

…nd add the reason for the delay in the pages mentioned.

Description:
Reduce duplicate permission queries on menu and auth checks.

Cache permission names via Permission::cachedNames() and user permission
groups via User::cachedPermissionGroups(), with invalidation through
PermissionCacheService. Replaces repeated permissions()->pluck('group')
and Permission::all() calls in GenerateMenus, User, and AuthServiceProvider.

Going forward: memoize repeated reads per request with once(), batch
related data with eager load/preload, and use Cache::remember only for
cross-request data with explicit invalidation on writes.

Related tickets:
https://processmaker.atlassian.net/browse/FOUR-32256
@processmaker-sonarqube

Copy link
Copy Markdown

@vladyrichter

Copy link
Copy Markdown

QA server K8S was successfully deployed https://ci-0a93bd2386.engk8s.processmaker.net

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.

2 participants