Bugzilla – Attachment 7426 Details for
Bug 7432
Changing frameworks should refresh cache
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7432 : Fix how we are setting expiry time when caching
Bug-7432--Fix-how-we-are-setting-expiry-time-when-.patch (text/plain), 1.12 KB, created by
Chris Cormack
on 2012-02-02 23:36:54 UTC
(
hide
)
Description:
Bug 7432 : Fix how we are setting expiry time when caching
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-02-02 23:36:54 UTC
Size:
1.12 KB
patch
obsolete
>From ac07233555a0cbe121206d6d1e6f0acf868cacac Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Fri, 3 Feb 2012 12:35:21 +1300 >Subject: [PATCH] Bug 7432 : Fix how we are setting expiry time when caching > >--- > C4/Biblio.pm | 9 +++++---- > 1 files changed, 5 insertions(+), 4 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 98e4f5b..83fef13 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -143,10 +143,11 @@ eval { > import Memoize::Memcached qw(memoize_memcached); > > my $memcached = { >- servers => [$servers], >- key_prefix => C4::Context->config('memcached_namespace') || 'koha', >- }; >- memoize_memcached( 'GetMarcStructure', memcached => $memcached, expire_time => 600 ); #cache for 10 minutes >+ servers => [$servers], >+ key_prefix => C4::Context->config('memcached_namespace') || 'koha', >+ expire_time => 600 >+ }; # cache for 10 mins, if you want to cache for different make a different memcached hash >+ memoize_memcached( 'GetMarcStructure', memcached => $memcached ); > } > }; > >-- >1.7.5.4
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 7432
:
7426
|
7427
|
7428
|
7429
|
7585
|
7586
|
7587