[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
Tue Feb 19 02:37:07 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7387

Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #14358|0                           |1
        is obsolete|                            |

--- Comment #11 from Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> ---
Created attachment 15502
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=15502&action=edit
[SIGNED-OFF] Bug 7387 : Adding a caching plugin for Template::Toolkit

To use this you need to do something like

-[% INCLUDE 'doc-head-open.inc' %]
+[% USE cache = Cache %]
+[% cache.inc(
+    'template' => 'doc-head-open.inc',
+    'keys' => {'dochead' => 'dochead'},
+    'ttl' => 360
+    )
+%]

Signed-off-by: Jared Camins-Esakov <jcamins at cpbibliography.com>
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>

Comment: Works. Tested modifying as described opac-main.tt
Follow up to fix tabulations.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list