Bugzilla – Attachment 7428 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 : Fixing caching for SQLHelper
Bug-7432--Fixing-caching-for-SQLHelper.patch (text/plain), 1.24 KB, created by
Chris Cormack
on 2012-02-02 23:43:13 UTC
(
hide
)
Description:
Bug 7432 : Fixing caching for SQLHelper
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-02-02 23:43:13 UTC
Size:
1.24 KB
patch
obsolete
>From 0361349e2a0f77bc287b345eb66cf4e14b95d9e8 Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Fri, 3 Feb 2012 12:39:43 +1300 >Subject: [PATCH] Bug 7432 : Fixing caching for SQLHelper > >--- > C4/SQLHelper.pm | 11 ++++++----- > 1 files changed, 6 insertions(+), 5 deletions(-) > >diff --git a/C4/SQLHelper.pm b/C4/SQLHelper.pm >index 41c5a9f..e1cb5d0 100644 >--- a/C4/SQLHelper.pm >+++ b/C4/SQLHelper.pm >@@ -34,12 +34,13 @@ eval { > import Memoize::Memcached qw(memoize_memcached); > > my $memcached = { >- servers => [$servers], >- key_prefix => C4::Context->config('memcached_namespace') || 'koha', >- }; >+ servers => [$servers], >+ key_prefix => C4::Context->config('memcached_namespace') || 'koha', >+ expire_time => 600 >+ }; # cache for 10 mins > >- memoize_memcached( '_get_columns', memcached => $memcached, expire_time => 600000 ); #cache for 10 minutes >- memoize_memcached( 'GetPrimaryKeys', memcached => $memcached, expire_time => 600000 ); #cache for 10 minutes >+ memoize_memcached( '_get_columns', memcached => $memcached ); >+ memoize_memcached( 'GetPrimaryKeys', 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