]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1449709: caching compiled Template Toolkit templates collab/miker/lp1449709-TT-caching-squashed
authorGalen Charlton <gmc@esilibrary.com>
Tue, 28 Apr 2015 19:06:48 +0000 (19:06 +0000)
committerMike Rylander <mrylander@gmail.com>
Tue, 5 May 2015 16:06:46 +0000 (12:06 -0400)
commita9f71ed8f12ddcd4b500f275bfc6334ec4bbd445
treed01be8379b41ea307b92bc4cfbe21abdf735a674
parent07c130ec8ae3f8aa21b185b3e5a3dfa4278a5bc9
LP#1449709: caching compiled Template Toolkit templates

This patch enables caching of compiled Template Toolkit
files on Evergreen web servers, which can provide a modest
improvement in the time it takes (say) TPAC to render
a page, particularly by a fresh Apache backend.

This is controlled by a new Apache virtualhost variable,
OILSWebCompiledTemplateCache, which can be set to a
directory on the webserver for storing compiled templates. This
is enabled by default for new installations.

This patch also adds OILSWebTemplateStatTTL, which can be
use to tweak the STAT_TTL Template Toolkit setting. Note this
bit anticipates future work to also cache TT objects, so
at the moment, setting OILSWebTemplateStatTTL has little effect.

Finally, this patch also fixes a bug where attempting to
disable OILSWebDebugTemplate would result in internal server errors;
it also sets the default value of this setting to false.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/examples/apache/eg_vhost.conf.in
Open-ILS/examples/apache_24/eg_vhost.conf.in
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm