Bugzilla – Attachment 6624 Details for
Bug 7276
member entry Performance improvement
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7276 : Follow up, adding a sub to clear the cache
Bug-7276--Follow-up-adding-a-sub-to-clear-the-cach.patch (text/plain), 1.19 KB, created by
Chris Cormack
on 2011-12-06 22:08:07 UTC
(
hide
)
Description:
Bug 7276 : Follow up, adding a sub to clear the cache
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-12-06 22:08:07 UTC
Size:
1.19 KB
patch
obsolete
>From 5fb2b1c01a38e895d494bfac13050021baa1d058 Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Wed, 7 Dec 2011 11:07:23 +1300 >Subject: [PATCH] Bug 7276 : Follow up, adding a sub to clear the cache > >--- > C4/SQLHelper.pm | 18 ++++++++++++++++++ > 1 files changed, 18 insertions(+), 0 deletions(-) > >diff --git a/C4/SQLHelper.pm b/C4/SQLHelper.pm >index 900e40d..c721586 100644 >--- a/C4/SQLHelper.pm >+++ b/C4/SQLHelper.pm >@@ -54,6 +54,7 @@ BEGIN { > SearchInTable > UpdateInTable > GetPrimaryKeys >+ clear_columns_cache > ); > %EXPORT_TAGS = ( all =>[qw( InsertInTable DeleteInTable SearchInTable UpdateInTable GetPrimaryKeys)] > ); >@@ -252,6 +253,23 @@ sub GetPrimaryKeys($) { > return grep { $hash_columns->{$_}->{'Key'} =~/PRI/i} keys %$hash_columns; > } > >+ >+=head2 clear_columns_cache >+ >+ C4::SQLHelper->clear_columns_cache(); >+ >+cleans the internal cache of sysprefs. Please call this method if >+you update a tables structure. Otherwise, your new changes >+will not be seen by this process. >+ >+=cut >+ >+sub clear_columns_cache { >+ %$hashref = (); >+} >+ >+ >+ > =head2 _get_columns > > _get_columns($tablename) >-- >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 7276
:
6453
|
6454
|
6623
| 6624