Skip to content

Commit

Permalink
Item14424: clean up pending registrations
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Jun 20, 2017
1 parent 9fa8d37 commit cf891d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/virtualhosts-tick-foswiki
Expand Up @@ -32,6 +32,7 @@ BEGIN {

use Foswiki ();
use Foswiki::LoginManager ();
use Foswiki::UI::Register ();
use Foswiki::Request::Cache ();
use Foswiki::Meta ();
use Foswiki::Contrib::VirtualHostingContrib::VirtualHost ();
Expand All @@ -58,6 +59,7 @@ if ($hostname) {
sub doit {
printf("=> Processing %s\n", $Foswiki::Contrib::VirtualHostingContrib::VirtualHost::CURRENT) if $verbose;
Foswiki::LoginManager::expireDeadSessions();
Foswiki::UI::Register::expirePendingRegistrations();
Foswiki::Request::Cache::cleanup();
my $root = new Foswiki::Meta( new Foswiki() );
$root->onTick( time() );
Expand All @@ -66,7 +68,7 @@ sub doit {
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2009-2012 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2009-2017 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down

0 comments on commit cf891d7

Please sign in to comment.