[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
Mon Oct 24 16:52:34 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31074

--- Comment #1 from Olivier Hubert <olivier.hubert at inlibro.com> ---
Created attachment 142517
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=142517&action=edit
Bug 31074: Reload a plugin's module before installation

When using Plack, memcached or another caching mechanism, a plugin's old
version is retained
in the cache, even when uninstalled. If the plugin is then reinstalled, the old
version is
used, no matter the version installed. To prevent this, the plugin's module is
reloaded every
time it is installed.

To test:
1) Install a plugin, like the kitchen sink.
   https://github.com/bywatersolutions/dev-koha-plugin-kitchen-sink/releases
2) Modify the .kpz and in KitchenSink.pm, change MINIMUN_VERSION.
3) Uninstall the plugin.
4) Install the new version.
5) The Minimum Koha version column still lists the old version.
6) Apply patch.
7) Repeat steps 1 through 4.
8) Observe that the Minimum Koha version column lists the correct version.
9) Sign off.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list