]> git.koha-community.org Git - koha.git/commit
Bug 7511 [ENH] Template caching (T::T feature)
authorPaul Poulain <paul.poulain@biblibre.com>
Fri, 10 Feb 2012 08:45:34 +0000 (09:45 +0100)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Mon, 20 Feb 2012 03:27:45 +0000 (22:27 -0500)
commit2bace14e5c06d909fc65ad17c031b4d7e4b3acb6
treea3c7ffb6ef93216c164746ff78d3f543a0c9ac80
parentf70e8702c2895e01734f431fce92bec9b75d3c02
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>
in the <config> block, 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)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
The results of using this are very striking. Based on an insufficient
sample size, it would seem that the time spent in T::T is reduced by a
factor of at least 5.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 1161079e1f14c681e82e139e72291af35d6f9b98)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
(cherry picked from commit 99583fe461267ecd84bab9f5092361697713f208)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
C4/Templates.pm