<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body>A new request with request id 17829 has been created by koha-devel-request@lists.koha-community.org. Short info on the request is : <br><br>Title : Koha-devel Digest, Vol 186, Issue 21<br>Category : <br>Description : <div>Send Koha-devel mailing list submissions to<br>    koha-devel@lists.koha-community.org<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>    https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>or, via email, send a message with subject or body 'help' to<br>    koha-devel-request@lists.koha-community.org<br><br>You can reach the person managing the list at<br>    koha-devel-owner@lists.koha-community.org<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Koha-devel digest..."<br><br><br>Today's Topics:<br><br>   1. Re: Thoughts on reloading Koha plugins (Galen Charlton)<br>   2. Re: Thoughts on reloading Koha plugins (dcook@prosentient.com.au)<br>   3. Looking for feedback on approach to Bug 28457<br>      cleanup_database.pl (dcook@prosentient.com.au)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Wed, 26 May 2021 13:59:21 -0400<br>From: Galen Charlton <gmc@equinoxoli.org><br>To: David Cook <dcook@prosentient.com.au><br>Cc: Arthur <arthur.suzuki@biblibre.com>,  koha-devel<br>    <koha-devel@lists.koha-community.org><br>Subject: Re: [Koha-devel] Thoughts on reloading Koha plugins<br>Message-ID:<br>    <CAPLnt66v3+ZRufmU73_Sf0e+cj=zOuzKm4E+g+wvaHEHhH6NBg@mail.gmail.com><br>Content-Type: text/plain; charset="utf-8"<br><br>Hi,<br><br>On Wed, May 26, 2021 at 1:17 AM <dcook@prosentient.com.au> wrote:<br><br>> Hmm interesting. I see instructions on setting up Wordpress with FastCGI<br>> but no comments about any impact that would have on plugins. Maybe they<br>> just don’t worry about it the same way most Koha folk don’t worry about it<br>> hehe.<br>><br><br>As I recall, Zend Opcache has various settings to control if and when it<br>will recompile the PHP scripts in caches. Depending on what settings you<br>choose, in a FastCGI environment it can periodically check to see if a<br>script has been updated and update the cache if need be - or, if you<br>choose, never revalidate the cache, in which case you'd need to reload or<br>restart php-fpm after changing code.<br><br>Also, WordPress has code that tries to clear opcache. [1, 2]<br><br>[1]<br>https://developer.wordpress.org/reference/functions/wp_opcache_invalidate/<br>[2] https://core.trac.wordpress.org/ticket/36455<br><br>Regards,<br><br>Galen<br>-- <br>Galen Charlton<br>Implementation and IT Manager<br>Equinox Open Library Initiative<br>gmc@equinoxOLI.org<br>https://www.equinoxOLI.org<br>phone: 877-OPEN-ILS (673-6457)<br>direct: 770-709-5581<br><http://evergreen-ils.org><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20210526/a742c59f/attachment-0001.htm><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 27 May 2021 10:00:56 +1000<br>From: <dcook@prosentient.com.au><br>To: "'Galen Charlton'" <gmc@equinoxoli.org><br>Cc: "'Arthur'" <arthur.suzuki@biblibre.com>, "'koha-devel'"<br>    <koha-devel@lists.koha-community.org><br>Subject: Re: [Koha-devel] Thoughts on reloading Koha plugins<br>Message-ID: <01de01d7528b$5e3d5ad0$1ab81070$@prosentient.com.au><br>Content-Type: text/plain; charset="utf-8"<br><br>That’s interesting, Galen. <br><br> <br><br>If I recall correctly, loading libraries in PHP doesn’t load them into PHP per se but rather inserts the code into the PHP script itself. I suppose in that way maybe you could cache and invalidate individual scripts and not have to worry about “unloading modules”. I don’t think we have any equivalent in Perl though, unfortunately.<br><br> <br><br>With Plack, we have Plack::App::CGIBin, which caches CGI scripts by turning them into packages, but everything is living in that Starman worker process. <br><br> <br><br>I have to go into a meeting but more thinking to do here…<br><br> <br><br>David Cook<br><br>Software Engineer<br><br>Prosentient Systems<br><br>Suite 7.03<br><br>6a Glen St<br><br>Milsons Point NSW 2061<br><br>Australia<br><br> <br><br>Office: 02 9212 0899<br><br>Online: 02 8005 0595<br><br> <br><br>From: Galen Charlton <gmc@equinoxoli.org> <br>Sent: Thursday, 27 May 2021 3:59 AM<br>To: David Cook <dcook@prosentient.com.au><br>Cc: Arthur <arthur.suzuki@biblibre.com>; koha-devel <koha-devel@lists.koha-community.org><br>Subject: Re: [Koha-devel] Thoughts on reloading Koha plugins<br><br> <br><br>Hi,<br><br> <br><br>On Wed, May 26, 2021 at 1:17 AM <dcook@prosentient.com.au <mailto:dcook@prosentient.com.au> > wrote:<br><br>Hmm interesting. I see instructions on setting up Wordpress with FastCGI but no comments about any impact that would have on plugins. Maybe they just don’t worry about it the same way most Koha folk don’t worry about it hehe.<br><br> <br><br>As I recall, Zend Opcache has various settings to control if and when it will recompile the PHP scripts in caches. Depending on what settings you choose, in a FastCGI environment it can periodically check to see if a script has been updated and update the cache if need be - or, if you choose, never revalidate the cache, in which case you'd need to reload or restart php-fpm after changing code.<br><br> <br><br>Also, WordPress has code that tries to clear opcache. [1, 2]<br><br> <br><br>[1] https://developer.wordpress.org/reference/functions/wp_opcache_invalidate/<br><br>[2] https://core.trac.wordpress.org/ticket/36455<br><br> <br><br>Regards,<br><br> <br><br>Galen<br><br>-- <br><br>Galen Charlton<br>Implementation and IT Manager<br>Equinox Open Library Initiative<br>gmc@equinoxOLI.org <mailto:gmc@equinoxOLI.org> <br>https://www.equinoxOLI.org <br>phone: 877-OPEN-ILS (673-6457)<br>direct: 770-709-5581<br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20210527/6c852cad/attachment-0001.htm><br><br>------------------------------<br><br>Message: 3<br>Date: Thu, 27 May 2021 13:50:15 +1000<br>From: <dcook@prosentient.com.au><br>To: "'koha-devel'" <koha-devel@lists.koha-community.org><br>Subject: [Koha-devel] Looking for feedback on approach to Bug 28457<br>    cleanup_database.pl<br>Message-ID: <020e01d752ab$67530be0$35f923a0$@prosentient.com.au><br>Content-Type: text/plain; charset="utf-8"<br><br>Hi all,<br><br> <br><br>I was wondering if someone could give me some feedback on "Bug 28457 -<br>cleanup_database.pl self-registration options are not configurable"<br>(https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28457)<br><br> <br><br>I like the patch I wrote there, but I wanted to see what other people<br>thought before running it locally. <br><br> <br><br>David Cook<br><br>Software Engineer<br><br>Prosentient Systems<br><br>Suite 7.03<br><br>6a Glen St<br><br>Milsons Point NSW 2061<br><br>Australia<br><br> <br><br>Office: 02 9212 0899<br><br>Online: 02 8005 0595<br><br> <br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20210527/ceb0c313/attachment-0001.htm><br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>Koha-devel mailing list<br>Koha-devel@lists.koha-community.org<br>https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>website : https://www.koha-community.org/<br>git : https://git.koha-community.org/<br>bugs : https://bugs.koha-community.org/<br><br><br>------------------------------<br><br>End of Koha-devel Digest, Vol 186, Issue 21<br>*******************************************<br></div><br><br>NOTE: You are receiving this mail because, the Requester/Technician wanted you to get notified on this request creation.<br></body></html>