Bugzilla – Attachment 50260 Details for
Bug 16105
Cache::Memory is loaded even if memcache is used
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16105: [DO NOT PUSH] warn to test the patch
Bug-16105-DO-NOT-PUSH-warn-to-test-the-patch.patch (text/plain), 1.32 KB, created by
Jonathan Druart
on 2016-04-15 08:23:32 UTC
(
hide
)
Description:
Bug 16105: [DO NOT PUSH] warn to test the patch
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-04-15 08:23:32 UTC
Size:
1.32 KB
patch
obsolete
>From 631aa53bca0af70208ca5ed1e089b84405d3ac89 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 15 Apr 2016 09:21:41 +0100 >Subject: [PATCH] Bug 16105: [DO NOT PUSH] warn to test the patch > >Test plan: >Apply this patch >Notice the 2 warnings: > init memcached > init memory >in the log >Apply the second patch "Do not initialize the memory cache if not needed" >Notice the single warning: > init memcached >--- > Koha/Cache.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/Koha/Cache.pm b/Koha/Cache.pm >index 0b203c0..18a2bc7 100644 >--- a/Koha/Cache.pm >+++ b/Koha/Cache.pm >@@ -119,6 +119,7 @@ sub new { > > sub _initialize_memcached { > my ($self) = @_; >+ warn "INIT memcached"; > my @servers = > split /,/, $self->{'cache_servers'} > ? $self->{'cache_servers'} >@@ -149,6 +150,7 @@ sub _initialize_memcached { > > sub _initialize_fastmmap { > my ($self) = @_; >+ warn "INIT fastmmap"; > my ($cache, $share_file); > > # Temporary workaround to catch fatal errors when: C4::Context module >@@ -176,6 +178,7 @@ sub _initialize_fastmmap { > > sub _initialize_memory { > my ($self) = @_; >+ warn "INIT memory"; > > # Default cache time for memory is _always_ short unless it's specially > # defined, to allow it to work reliably in a persistent environment. >-- >2.7.0
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 16105
:
49315
| 50260 |
50869
|
50911