[Koha-bugs] [Bug 7387] Add Template::Toolkit plugin to allow caching of includes
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jun 20 21:59:10 CEST 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7387
--- Comment #7 from Paul Poulain <paul.poulain at biblibre.com> ---
(In reply to comment #3)
> QA comment: chris, there is no explanation of the positive effect of this.
> What would be the next step if this patch is included ? could we do that
> with all includes ? more explanation welcomed !
Chris, before pushing this patch, i'd like to understand what will be the next
step. Should all templates be switched to:
-[% INCLUDE 'doc-head-open.inc' %]
+[% USE cache = Cache %]
+[% cache.inc(
+ 'template' => 'doc-head-open.inc',
+ 'keys' => {'dochead' => 'dochead'},
+ 'ttl' => 360
+ )
+%]
?
(if that's the case, then I'll add this to my next RM newsletter & send a mail
to koha-devel about that)
Do you already have a list of other .inc we could cache too ?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list