View | Details | Raw Unified | Return to bug 38384
Collapse All | Expand All

(-)a/C4/Context.pm (+5 lines)
Lines 21-26 use Modern::Perl; Link Here
21
21
22
use vars qw($AUTOLOAD $context);
22
use vars qw($AUTOLOAD $context);
23
BEGIN {
23
BEGIN {
24
    # Calling get_enabled_plugins here esnures that all plugin
25
    # modules are loaded before use and will not trigger
26
    # a database connection reset
27
    Koha::Plugins->get_enabled_plugins();
28
24
    if ( $ENV{'HTTP_USER_AGENT'} ) { # Only hit when plack is not enabled
29
    if ( $ENV{'HTTP_USER_AGENT'} ) { # Only hit when plack is not enabled
25
30
26
        # Redefine multi_param if cgi version is < 4.08
31
        # Redefine multi_param if cgi version is < 4.08
(-)a/Koha/BackgroundJob.pm (-7 lines)
Lines 176-187 sub process { Link Here
176
176
177
    return {} if ref($self) ne 'Koha::BackgroundJob';
177
    return {} if ref($self) ne 'Koha::BackgroundJob';
178
178
179
    # Our background jobs are called in forked processes
180
    # to ensure we have all plugin hooks and data we call
181
    # get_enabled_plugins at the star of processing
182
    # to populate the cache
183
    Koha::Plugins->get_enabled_plugins();
184
185
    my $derived_class = $self->_derived_class;
179
    my $derived_class = $self->_derived_class;
186
180
187
    $args ||= {};
181
    $args ||= {};
188
- 

Return to bug 38384