[perf] Extension list cache (#3616)

This commit is contained in:
Vlad Stan
2025-12-04 10:57:17 +02:00
committed by GitHub
parent ca94909aab
commit ad268516a9
4 changed files with 45 additions and 2 deletions
+3 -1
View File
@@ -508,7 +508,9 @@ async def extensions(account_id: AccountId = Depends(check_account_id_exists)):
installed_exts: list[InstallableExtension] = await get_installed_extensions()
installed_exts_ids = [e.id for e in installed_exts]
installable_exts = await InstallableExtension.get_installable_extensions()
installable_exts = await InstallableExtension.get_installable_extensions(
post_refresh_cache=account_id.is_admin_id
)
installable_exts_ids = [e.id for e in installable_exts]
installable_exts += [e for e in installed_exts if e.id not in installable_exts_ids]