Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to force refresh/prevent caching for plugin results when opened from history? #4316

Unanswered
Goodspoken asked this question in Q&A
Discussion options

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!

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /