From 7ff0b7a72050104bba80a30c00c31c3f44fffa9e Mon Sep 17 00:00:00 2001 From: byron jones Date: Tue, 13 Mar 2018 04:01:31 +0800 Subject: Bug 1439993 - Remove COMPILE_DIR => setting from Bugzilla::Template --- Bugzilla/Template.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Template.pm') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index d27896532..3c2663e74 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -572,7 +572,9 @@ sub create { ABSOLUTE => 1, RELATIVE => $ENV{MOD_PERL} ? 0 : 1, - COMPILE_DIR => bz_locations()->{'template_cache'}, + # Only use an on-disk template cache if we're running as the web + # server. This ensures the permissions of the cache remain correct. + COMPILE_DIR => is_webserver_group() ? bz_locations()->{'template_cache'} : undef, # Don't check for a template update until 1 hour has passed since the # last check. -- cgit v1.2.3-24-g4f1b