Disable plugin cache for a specific plugin

A place where plug-in developers can share their knowledge and experience.
Post Reply
pepak
Posts: 617
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 17 times
Been thanked: 58 times

Disable plugin cache for a specific plugin

Post by pepak »

While developing a new plugin, I encountered an unexpected obstacle: The plugin works fine the first time it is loaded, but on subsequent starts, FAR notices that the plugin didn't change and won't even load the DLL into memory - it waits until the plugin actually gets used. Which is perfectly fine for most plugins, but my specific plugin only really needs to run once, when FAR is started, and from that moment on it doesn't even need to be loaded. Is there some way I can convince plugincache.db to not store information about my plugin, so that the plugin gets loaded every time FAR starts?
Yegor
Posts: 1396
Joined: Mon 04 Apr, 2005 13:41
Location: San Ramon, CA / Kharkov, UA
Has thanked: 43 times
Been thanked: 66 times

Disable plugin cache for a specific plugin

Post by Yegor »

PF_PRELOAD?
Мы не можем ждать милостей от Фара, взять их у него — наша задача! (C) Мичурин
pepak
Posts: 617
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 17 times
Been thanked: 58 times

Disable plugin cache for a specific plugin

Post by pepak »

That's exactly it! Thank you!
Post Reply

Return to “Plug-In Developers”