Bugzilla – Attachment 121275 Details for
Bug 28416
Email::Sender::Transport::SMTP is using 10Mo of RAM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28416: Delay load of Email::Sender::Transport::SMTP
Bug-28416-Delay-load-of-EmailSenderTransportSMTP.patch (text/plain), 896 bytes, created by
Jonathan Druart
on 2021-05-21 12:11:46 UTC
(
hide
)
Description:
Bug 28416: Delay load of Email::Sender::Transport::SMTP
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-05-21 12:11:46 UTC
Size:
896 bytes
patch
obsolete
>From ff67d8e8bd6aba5a3c3178973d7670a181bb52bf Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 21 May 2021 14:10:56 +0200 >Subject: [PATCH] Bug 28416: Delay load of Email::Sender::Transport::SMTP > >As it's taking 10M of RAM >--- > Koha/SMTP/Server.pm | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/Koha/SMTP/Server.pm b/Koha/SMTP/Server.pm >index d5fec72611b..cab00a8e031 100644 >--- a/Koha/SMTP/Server.pm >+++ b/Koha/SMTP/Server.pm >@@ -21,8 +21,6 @@ use Koha::Database; > use Koha::Exceptions::Object; > use Koha::SMTP::Servers; > >-use Email::Sender::Transport::SMTP; >- > use base qw(Koha::Object); > > =head1 NAME >@@ -65,6 +63,7 @@ sub transport { > if $self->password; > > >+ require Email::Sender::Transport::SMTP; > my $transport = Email::Sender::Transport::SMTP->new( $params ); > > return $transport; >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28416
:
121275
|
132028
|
132219