A new request with request id 17829 has been created by koha-devel-request@lists.koha-community.org. Short info on the request is :

Title : Koha-devel Digest, Vol 186, Issue 21
Category :
Description :
Send Koha-devel mailing list submissions to
    koha-devel@lists.koha-community.org

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
or, via email, send a message with subject or body 'help' to
    koha-devel-request@lists.koha-community.org

You can reach the person managing the list at
    koha-devel-owner@lists.koha-community.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Koha-devel digest..."


Today's Topics:

1. Re: Thoughts on reloading Koha plugins (Galen Charlton)
2. Re: Thoughts on reloading Koha plugins (dcook@prosentient.com.au)
3. Looking for feedback on approach to Bug 28457
cleanup_database.pl (dcook@prosentient.com.au)


----------------------------------------------------------------------

Message: 1
Date: Wed, 26 May 2021 13:59:21 -0400
From: Galen Charlton <gmc@equinoxoli.org>
To: David Cook <dcook@prosentient.com.au>
Cc: Arthur <arthur.suzuki@biblibre.com>, koha-devel
    <koha-devel@lists.koha-community.org>
Subject: Re: [Koha-devel] Thoughts on reloading Koha plugins
Message-ID:
    <CAPLnt66v3+ZRufmU73_Sf0e+cj=zOuzKm4E+g+wvaHEHhH6NBg@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi,

On Wed, May 26, 2021 at 1:17 AM <dcook@prosentient.com.au> wrote:

> 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.
>

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.

Also, WordPress has code that tries to clear opcache. [1, 2]

[1]
https://developer.wordpress.org/reference/functions/wp_opcache_invalidate/
[2] https://core.trac.wordpress.org/ticket/36455

Regards,

Galen
--
Galen Charlton
Implementation and IT Manager
Equinox Open Library Initiative
gmc@equinoxOLI.org
https://www.equinoxOLI.org
phone: 877-OPEN-ILS (673-6457)
direct: 770-709-5581
<http://evergreen-ils.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20210526/a742c59f/attachment-0001.htm>

------------------------------

Message: 2
Date: Thu, 27 May 2021 10:00:56 +1000
From: <dcook@prosentient.com.au>
To: "'Galen Charlton'" <gmc@equinoxoli.org>
Cc: "'Arthur'" <arthur.suzuki@biblibre.com>, "'koha-devel'"
    <koha-devel@lists.koha-community.org>
Subject: Re: [Koha-devel] Thoughts on reloading Koha plugins
Message-ID: <01de01d7528b$5e3d5ad0$1ab81070$@prosentient.com.au>
Content-Type: text/plain; charset="utf-8"

That’s interesting, Galen.



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.



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.



I have to go into a meeting but more thinking to do here…



David Cook

Software Engineer

Prosentient Systems

Suite 7.03

6a Glen St

Milsons Point NSW 2061

Australia



Office: 02 9212 0899

Online: 02 8005 0595



From: Galen Charlton <gmc@equinoxoli.org>
Sent: Thursday, 27 May 2021 3:59 AM
To: David Cook <dcook@prosentient.com.au>
Cc: Arthur <arthur.suzuki@biblibre.com>; koha-devel <koha-devel@lists.koha-community.org>
Subject: Re: [Koha-devel] Thoughts on reloading Koha plugins



Hi,



On Wed, May 26, 2021 at 1:17 AM <dcook@prosentient.com.au <mailto:dcook@prosentient.com.au> > wrote:

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.



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.



Also, WordPress has code that tries to clear opcache. [1, 2]



[1] https://developer.wordpress.org/reference/functions/wp_opcache_invalidate/

[2] https://core.trac.wordpress.org/ticket/36455



Regards,



Galen

--

Galen Charlton
Implementation and IT Manager
Equinox Open Library Initiative
gmc@equinoxOLI.org <mailto:gmc@equinoxOLI.org>
https://www.equinoxOLI.org
phone: 877-OPEN-ILS (673-6457)
direct: 770-709-5581

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20210527/6c852cad/attachment-0001.htm>

------------------------------

Message: 3
Date: Thu, 27 May 2021 13:50:15 +1000
From: <dcook@prosentient.com.au>
To: "'koha-devel'" <koha-devel@lists.koha-community.org>
Subject: [Koha-devel] Looking for feedback on approach to Bug 28457
    cleanup_database.pl
Message-ID: <020e01d752ab$67530be0$35f923a0$@prosentient.com.au>
Content-Type: text/plain; charset="utf-8"

Hi all,



I was wondering if someone could give me some feedback on "Bug 28457 -
cleanup_database.pl self-registration options are not configurable"
(https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28457)



I like the patch I wrote there, but I wanted to see what other people
thought before running it locally.



David Cook

Software Engineer

Prosentient Systems

Suite 7.03

6a Glen St

Milsons Point NSW 2061

Australia



Office: 02 9212 0899

Online: 02 8005 0595



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20210527/ceb0c313/attachment-0001.htm>

------------------------------

Subject: Digest Footer

_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : https://www.koha-community.org/
git : https://git.koha-community.org/
bugs : https://bugs.koha-community.org/


------------------------------

End of Koha-devel Digest, Vol 186, Issue 21
*******************************************


NOTE: You are receiving this mail because, the Requester/Technician wanted you to get notified on this request creation.