projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
missing static images from 4.2.11, RT#13852
[freeside.git]
/
htetc
/
handler.pl
diff --git
a/htetc/handler.pl
b/htetc/handler.pl
index
d7c5657
..
416ea69
100644
(file)
--- a/
htetc/handler.pl
+++ b/
htetc/handler.pl
@@
-6,12
+6,24
@@
use strict;
use warnings;
use FS::Mason qw( mason_interps );
use FS::Trace;
use warnings;
use FS::Mason qw( mason_interps );
use FS::Trace;
+use FS::Conf;
+
+$FS::Conf::conf_cache_enabled = 1; # enable FS::Conf caching for performance
if ( %%%RT_ENABLED%%% ) {
if ( %%%RT_ENABLED%%% ) {
+
require RT;
require RT;
+
$> = scalar(getpwnam('freeside'));
$> = scalar(getpwnam('freeside'));
+
RT::LoadConfig();
RT::Init();
RT::LoadConfig();
RT::Init();
+
+ # disconnect DB before fork:
+ # (avoid 'prepared statement "dbdpg_p\d+_\d+" already exists' errors?)
+ $RT::Handle->dbh(undef);
+ undef $RT::Handle;
+
$> = $<;
}
$> = $<;
}
@@
-95,7
+107,6
@@
sub handler
return -1 if defined( $r->content_type )
&& $r->content_type !~ m!(^text/|\bxml\b)!io;
return -1 if defined( $r->content_type )
&& $r->content_type !~ m!(^text/|\bxml\b)!io;
-
local $SIG{__WARN__};
local $SIG{__DIE__};
local $SIG{__WARN__};
local $SIG{__DIE__};