diff options
author | Mark Wells <mark@freeside.biz> | 2015-11-23 14:12:04 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-11-23 16:27:15 -0800 |
commit | b6892bebffca4d2962325d9fb1a0e4c0f2bf5bec (patch) | |
tree | c5062807e22cf02369003b92527deaab1b5c1f84 /htetc/handler.pl | |
parent | 29d463abb96be9ca13da57f3d1d25ef1d0043e43 (diff) |
Cache foreign key method lookup for better performance.
Contributed by Jason Terry <jterry@bluehost.com>
Diffstat (limited to 'htetc/handler.pl')
-rw-r--r-- | htetc/handler.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/htetc/handler.pl b/htetc/handler.pl index 416ea69c4..4bb214c98 100644 --- a/htetc/handler.pl +++ b/htetc/handler.pl @@ -10,6 +10,12 @@ use FS::Conf; $FS::Conf::conf_cache_enabled = 1; # enable FS::Conf caching for performance +# Preload to share in mod_perl parent for performance +use FS::UID qw(load_schema); +load_schema(); +use FS::Record qw(fk_methods_init); +fk_methods_init; + if ( %%%RT_ENABLED%%% ) { require RT; |