The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

PEF::Front::Preload - Pre-load application parts

SYNOPSIS

  use PEF::Front::Preload;

DESCRIPTION

This module pre-loads application modules and makes database connect.

USAGE

You can turn off preloads of some unneeded parts.

  use PEF::Front::Preload qw(no_db_connect);
  

Following parts can be turned off:

model

Don't load model description files.

  use PEF::Front::Preload qw(no_model);
db_connect

Don't connect to database.

  use PEF::Front::Preload qw(no_db_connect);
local_modules

Don't load local model handlers.

  use PEF::Front::Preload qw(no_local_modules);
in_filters

Don't load input filters.

  use PEF::Front::Preload qw(no_in_filters);
out_filters

Don't load output filters.

  use PEF::Front::Preload qw(no_out_filters);

You can combine these switches as you wish:

  use PEF::Front::Preload qw(no_model no_db_connect);

Usually you use this module right after loading your configuration module *::AppFrontConfig.

AUTHOR

This module was written and is maintained by Anton Petrusevich.

Copyright and License

Copyright (c) 2016 Anton Petrusevich. Some Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.