[Koha-bugs] [Bug 23303] When uninstalling a plugin we don't call any form of 'unload'

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 15 00:24:00 CET 2023


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

--- Comment #1 from David Cook <dcook at prosentient.com.au> ---
(In reply to Martin Renvoize from comment #0)
> We currently clean up the filesystem and run through the 'uninstall' method
> from the plugin in point during the uninstall process. We don't however,
> ever, unload the module code from memory and this may result in plack
> environments leaking memory.

I don't think that this is possible in Perl though. 

In theory there's some things that can be down to unload the module
(https://metacpan.org/pod/Class::Unload) but I don't know that it actually
frees up any memory.

It would be interesting to do some experiments with it though...

Although it runs into the same problem as plugin upgrades. We'd need to signal
it to all Starman workers.

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


More information about the Koha-bugs mailing list