[Koha-devel] Thoughts on reloading Koha plugins

Galen Charlton gmc at equinoxoli.org
Wed May 26 19:59:21 CEST 2021


Hi,

On Wed, May 26, 2021 at 1:17 AM <dcook at 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 at 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.htm>


More information about the Koha-devel mailing list