-
-
Notifications
You must be signed in to change notification settings - Fork 617
How to force refresh/prevent caching for plugin results when opened from history? #4316
-
Hi everyone!
I recently developed a power management plugin (Volt) that allows users to switch Windows power plans. The plugin works perfectly when typing the keyword fresh: it correctly identifies the active power plan and updates the icons/status in the results.
However, I've noticed a UI cache issue: If a user switches to "Power Saver", closes Flow Launcher, and then re-opens Flow Launcher bringing up the history (the exact same previous query), the plugin UI still shows the old status. The results only update if the user types the keyword again to trigger a fresh
query()
call.
My question: Is there a way (e.g., a flag in JsonRPCAction or ActionContext) to tell Flow Launcher not to cache the results of a specific plugin, or to automatically trigger a background refresh of the results when the query is loaded from history?
Any advice from other plugin developers would be greatly appreciated. Thanks!
Beta Was this translation helpful? Give feedback.