Bugzilla – Attachment 15893 Details for
Bug 7387
Add Template::Toolkit plugin to allow caching of includes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Follow-up Bug 7387 - Add Template::Toolkit plugin to allow caching of includes
Follow-up-Bug-7387---Add-TemplateToolkit-plugin-to.patch (text/plain), 1.70 KB, created by
Elliott Davis
on 2013-03-05 18:25:13 UTC
(
hide
)
Description:
Follow-up Bug 7387 - Add Template::Toolkit plugin to allow caching of includes
Filename:
MIME Type:
Creator:
Elliott Davis
Created:
2013-03-05 18:25:13 UTC
Size:
1.70 KB
patch
obsolete
>From 8f85e6de4556f8f6533a0d6fd26134b6cdb86b53 Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Mon, 18 Feb 2013 22:24:29 -0300 >Subject: [PATCH] Follow-up Bug 7387 - Add Template::Toolkit plugin to allow caching of includes > >Fixes tabulations. > >Signed-off-by: Elliott Davis <elliott@bywatersolions.com> >--- > Koha/Template/Plugin/Cache.pm | 10 +++++----- > 1 files changed, 5 insertions(+), 5 deletions(-) > >diff --git a/Koha/Template/Plugin/Cache.pm b/Koha/Template/Plugin/Cache.pm >index 1bdb665..ed3dfce 100644 >--- a/Koha/Template/Plugin/Cache.pm >+++ b/Koha/Template/Plugin/Cache.pm >@@ -37,7 +37,7 @@ sub new { > } > else { > require Koha::Cache; >- $cache = Koha::Cache->new( { 'cache_type' => 'memcached', 'cache_servers' => C4::Context->config('memcached_servers') }); >+ $cache = Koha::Cache->new( { 'cache_type' => 'memcached', 'cache_servers' => C4::Context->config('memcached_servers') }); > } > my $self = bless { > CACHE => $cache, >@@ -77,15 +77,15 @@ sub _cached_action { > ':', > ( > $params->{template}, >- map { "$_=$cache_keys->{$_}" } keys %{$cache_keys} >+ map { "$_=$cache_keys->{$_}" } keys %{$cache_keys} > ) > ); > } > my $result = $self->{CACHE}->get_from_cache($key); > if ( !$result ) { >- warn "here in not in cache"; >- $result = $self->{CONTEXT}->$action( $params->{template} ); >- $self->{CACHE}->set_in_cache( $key, $result, $params->{ttl} ); >+ warn "here in not in cache"; >+ $result = $self->{CONTEXT}->$action( $params->{template} ); >+ $self->{CACHE}->set_in_cache( $key, $result, $params->{ttl} ); > } > return $result; > } >-- >1.7.2.5
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 7387
:
6959
|
7368
|
14358
|
15502
|
15503
|
15892
| 15893