Remove old files

This commit is contained in:
Xavier Guimard 2018-03-25 12:51:04 +02:00
parent 1595ad9afb
commit 2d1795ccc6
5 changed files with 3 additions and 65 deletions

View File

@ -1,7 +1,7 @@
Changes
example/handler.psgi
example/scripts/purgeLocalCache
example/scripts/purgeLocalCache.cron.d
eg/handler.psgi
eg/scripts/purgeLocalCache
eg/scripts/purgeLocalCache.cron.d
lib/Lemonldap/NG/Handler.pm
lib/Lemonldap/NG/Handler/ApacheMP2.pm
lib/Lemonldap/NG/Handler/ApacheMP2/AuthBasic.pm

View File

@ -1,6 +0,0 @@
# Simple handler that can be used to replace llng-fastcgi-server to handler
# handler requests.
# See https://lemonldap-ng.org/documentation/<version>/highperfnginxhandler
require Lemonldap::NG::Handler::Server::Nginx;
Lemonldap::NG::Handler::Server::Nginx->run( {} );

View File

@ -1,49 +0,0 @@
#!/usr/bin/perl
#=============================================================================
# Cleaner for LemonLDAP::NG: purge local handler cache and session cache
#
# This module is written to be used by cron to clean cache objects used
# by Handler.
#
# This is part of LemonLDAP::NG product, released under GPL
#=============================================================================
use Lemonldap::NG::Common::Conf;
use Lemonldap::NG::Common::Conf::Constants;
use strict;
my $debug = 0;
#=============================================================================
# Load configuration
#=============================================================================
my $lmconf = Lemonldap::NG::Common::Conf->new()
or die $Lemonldap::NG::Common::Conf::msg;
my $conf = $lmconf->getConf or die "Unable to get configuration ($!)";
my $localconf = $lmconf->getLocalConf(HANDLERSECTION)
or die "Unable to get local configuration ($!)";
if ($localconf) {
$conf->{$_} = $localconf->{$_} foreach ( keys %$localconf );
}
print "Configuration loaded\n" if $debug;
# Handler cache
if ( $conf->{localStorage} ) {
eval "require $conf->{localStorage}";
$conf->{localStorageOptions}->{default_expires_in} ||= 600;
my $c = $conf->{localStorage}->new( $conf->{localStorageOptions} );
$c->purge();
}
# Session cache
if ( $conf->{localSessionStorage} ) {
eval "require $conf->{localSessionStorage}";
$conf->{localSessionStorageOptions}->{default_expires_in} ||= 600;
my $s =
$conf->{localSessionStorage}->new( $conf->{localSessionStorageOptions} );
$s->purge();
}
exit 0;

View File

@ -1,4 +0,0 @@
#
# Regular cron jobs for LemonLDAP::NG
#
1 * * * * __APACHEUSER__ [ -x __BINDIR__/purgeLocalCache ] && __BINDIR__/purgeLocalCache

View File

@ -4,9 +4,6 @@ Changes
eg/index.cgi
eg/index.fcgi
eg/index.psgi
example/soapconfigtest.pl
example/soaperrortest.pl
example/soaptest.pl
inc/LWP/Protocol/PSGI.pm
lib/Lemonldap/NG/Portal.pm
lib/Lemonldap/NG/Portal/2F/Engines/Default.pm