[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
Thu Nov 10 15:35:00 CET 2022


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

Olivier Hubert <olivier.hubert at inlibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #143445|0                           |1
        is obsolete|                            |

--- Comment #4 from Olivier Hubert <olivier.hubert at inlibro.com> ---
Created attachment 143668
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=143668&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.


More information about the Koha-bugs mailing list