Remove force parameter from plugin index fetch in API handler

Remove force parameter parsing and passing from _fetch_index method in PluginInstall API handler. The force refresh functionality is now handled client-side through cache-busting headers and timestamp parameters added in previous commit (c7a9836).

frdel committed Mar 27, 2026 at 10:26 UTC fad07c5ba84a159cfadd1b25c0b52f30e85465e8
1 file changed +1 -8
plugins/_plugin_installer/api/plugin_install.py
+1 -8
@@ -56,11 +56,4 @@ class PluginInstall(ApiHandler):
56 return update_from_git(input.get("plugin_name", ""))
57
58 def _fetch_index(self, input: dict) -> dict:
59 - force_raw = input.get("force", False)
60 - force = force_raw if isinstance(force_raw, bool) else str(force_raw).strip().lower() in {
61 - "1",
62 - "true",
63 - "yes",
64 - "on",
65 - }
66 - return {"success": True, **get_plugin_hub_index(force=force)}
59 + return {"success": True, **get_plugin_hub_index()}