[Koha-bugs] [Bug 31074] Plugin metadata is kept in cache after uninstalling a plugin
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Dec 21 23:47:28 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31074
--- Comment #15 from David Cook <dcook at prosentient.com.au> ---
I'm getting an idea...
Every time we want to use plugins, we check if the plugin is already loaded. If
it's already loaded, we check the version/timestamp of the loaded plugin
against the version/timestamp in the database. If they differ, then you re-load
the plugin. Note that this has to happen in every process.
We're already doing some database calls for plugins. Adding more is suboptimal
but maybe we could optimize things a bit. (At install/upgrade time, we could
set the data in the L2 cache, or we could try to do a more complex SQL query to
get more data with only 1 DB call.)
If we're going to try to dynamically reload plugin modules, it needs to be done
consistently.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list