Bugzilla – Attachment 7558 Details for
Bug 7511
Caching Templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7511 [ENH] Template caching (T::T feature)
Bug-7511-ENH-Template-caching-TT-feature.patch (text/plain), 1.37 KB, created by
Paul Poulain
on 2012-02-10 08:46:16 UTC
(
hide
)
Description:
Bug 7511 [ENH] Template caching (T::T feature)
Filename:
MIME Type:
Creator:
Paul Poulain
Created:
2012-02-10 08:46:16 UTC
Size:
1.37 KB
patch
obsolete
>From a79d50a42bdd90361608618b47191038feeb40b3 Mon Sep 17 00:00:00 2001 >From: Paul Poulain <paul.poulain@biblibre.com> >Date: Fri, 10 Feb 2012 09:45:34 +0100 >Subject: [PATCH] Bug 7511 [ENH] Template caching (T::T feature) > >Just add to your Koha configuration file ><template_cache_dir>/path/writable/by/apache/user</template_cache_dir> >and Koha will use template caching, for about 10% CPU time saving. > >on linux servers, /tmp is usually OK > >(also fixes an indenting with a TAB) >--- > C4/Templates.pm | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/C4/Templates.pm b/C4/Templates.pm >index d150a16..0741040 100644 >--- a/C4/Templates.pm >+++ b/C4/Templates.pm >@@ -53,12 +53,13 @@ sub new { > else { > $htdocs = C4::Context->config('intrahtdocs'); > } >- > my ($theme, $lang)= themelanguage( $htdocs, $tmplbase, $interface, $query); > my $template = Template->new( > { EVAL_PERL => 1, > ABSOLUTE => 1, >- PLUGIN_BASE => 'Koha::Template::Plugin', >+ PLUGIN_BASE => 'Koha::Template::Plugin', >+ COMPILE_EXT => C4::Context->config('template_cache_dir')?'.ttc':'', >+ COMPILE_DIR => C4::Context->config('template_cache_dir')?C4::Context->config('template_cache_dir'):'',, > INCLUDE_PATH => [ > "$htdocs/$theme/$lang/includes", > "$htdocs/$theme/en/includes" >-- >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 7511
:
7558
|
7589