refactor: replace queries with cached versions for performance improvements

This commit is contained in:
Andras Bacsai committed 2025-12-08 13:39:33 +01:00
1 parent bb83f4e5c3
commit 5e8d11f732
28 files changed
+305 -125

No files matched your search

+3 -3
View File
@@ -17,9 +17,9 @@ class Index extends Component
public function mount()
{
$this->private_keys = PrivateKey::ownedByCurrentTeam()->get();
$this->projects = Project::ownedByCurrentTeam()->get();
$this->servers = Server::ownedByCurrentTeam()->count();
$this->private_keys = PrivateKey::ownedByCurrentTeamCached();
$this->projects = Project::ownedByCurrentTeamCached();
$this->servers = Server::ownedByCurrentTeamCached();
}
public function render()