LP#1449709: caching compiled Template Toolkit templates user/gmcharlt/lp1449709_cache_compiled_templates
authorGalen Charlton <gmc@esilibrary.com>
Tue, 28 Apr 2015 19:06:48 +0000 (19:06 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 30 Apr 2015 18:09:17 +0000 (18:09 +0000)
commitf1b9f1a702cc689d7782472b0c726bfb106a5570
tree49213d7d003804e29bcb106e11641efec0ed3781
parent7ec3ea5ef54dd1c3651bc8f4ec2575f2308c4ae3
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>
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