From 63cc43a59cf31b1d2f48c9bbdd0d87afd7bccb4d Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Mon, 23 Nov 2015 14:12:04 -0800 Subject: Cache foreign key method lookup for better performance. Contributed by Jason Terry --- htetc/handler.pl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'htetc') 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; -- cgit v1.2.1