How to force refresh/prevent caching for plugin results when opened from history? #4316
Unanswered
Goodspoken
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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.
All reactions