[PR #2029] [MERGED] Per request cache for permission checks #1713

Closed
opened 2026-02-04 20:09:50 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/2029
Author: @xDev789
Created: 12/21/2025
Status: Merged
Merged: 12/28/2025
Merged by: @rmartinoscar

Base: mainHead: main


📝 Commits (8)

📊 Changes

2 files changed (+17 additions, -5 deletions)

View changed files

📝 app/Models/User.php (+13 -5)
📝 tests/Integration/Api/Client/Server/Subuser/UpdateSubuserTest.php (+4 -0)

📄 Description

Cache permission checks for each request to reduce load on the database and improve speed in distributed environments.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/2029 **Author:** [@xDev789](https://github.com/xDev789) **Created:** 12/21/2025 **Status:** ✅ Merged **Merged:** 12/28/2025 **Merged by:** [@rmartinoscar](https://github.com/rmartinoscar) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (8) - [`54959be`](https://github.com/pelican-dev/panel/commit/54959beabcbc05ba8e23cd400cf26464dfb35062) Per request cache for permission checks - [`a6fd2a5`](https://github.com/pelican-dev/panel/commit/a6fd2a5a91e51a6cd95d860a967673e793583fb4) Fix case - [`b338c67`](https://github.com/pelican-dev/panel/commit/b338c67368365eacf1e559166b30af1cdd241f3d) Flush context in UpdateSubuserTest - [`c225215`](https://github.com/pelican-dev/panel/commit/c225215c45c16a5869c334b4b01252bcf3ee0ed7) Fix formatting - [`39544a9`](https://github.com/pelican-dev/panel/commit/39544a9898f337f778b5548f1f41c8504a2bdc62) Refactor Context mutation logic - [`3d62368`](https://github.com/pelican-dev/panel/commit/3d623682048e3f062fcdc2e5f717565087208055) Add missing parenthesis - [`b0e408c`](https://github.com/pelican-dev/panel/commit/b0e408c79477c3862201de441d524d77b70bae78) Make Pint happy - [`2e0baec`](https://github.com/pelican-dev/panel/commit/2e0baeca668212c9dac12bafefd16e95e3774585) Update context key by @lancepioch ### 📊 Changes **2 files changed** (+17 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `app/Models/User.php` (+13 -5) 📝 `tests/Integration/Api/Client/Server/Subuser/UpdateSubuserTest.php` (+4 -0) </details> ### 📄 Description Cache permission checks for each request to reduce load on the database and improve speed in distributed environments. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 20:09:50 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#1713