diff options
author | Mark Wells <mark@freeside.biz> | 2015-11-23 14:12:04 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-11-23 14:13:13 -0800 |
commit | 63cc43a59cf31b1d2f48c9bbdd0d87afd7bccb4d (patch) | |
tree | 0879273a51250e182f5ff9c44f95e7862f3e9e8d /htetc | |
parent | 2556ee7497c7684b75eca0061457d21b9b315dc1 (diff) |
Cache foreign key method lookup for better performance.
Contributed by Jason Terry <jterry@bluehost.com>
Diffstat (limited to 'htetc')
-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; |