.\" -*- mode: troff; coding: utf-8 -*-
.\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
.ie n \{\
.    ds C` ""
.    ds C' ""
'br\}
.el\{\
.    ds C`
.    ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\"
.\" If the F register is >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD.  Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{\
.    if \nF \{\
.        de IX
.        tm Index:\\$1\t\\n%\t"\\$2"
..
.        if !\nF==2 \{\
.            nr % 0
.            nr F 2
.        \}
.    \}
.\}
.rr rF
.\"
.\" Required to disable full justification in groff 1.23.0.
.if n .ds AD l
.\" ========================================================================
.\"
.IX Title "PURGECENTRALCACHE 1p"
.TH PURGECENTRALCACHE 1p 2026-10-14 "perl v5.42.3" "User Contributed Perl Documentation"
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH NAME
purgeCentralCache \- Remove expired LemonLDAP::NG sessions from central storage
.SH SYNOPSIS
.IX Header "SYNOPSIS"
.Vb 1
\&  purgeCentralCache [options]
.Ve
.SH DESCRIPTION
.IX Header "DESCRIPTION"
This script must be run periodically on at least one LemonLDAP::NG hosts.
It will search for expired SSO sessions, as well as secondary (SAML, CAS, OIDC)
and utility (Captcha, Token) sessions, and remove them from the session backend.
.SH OPTIONS
.IX Header "OPTIONS"
.IP "\fB\-\-help\fR, \fB\-h\fR" 8
.IX Item "--help, -h"
Print a brief help message and exit.
.IP "\fB\-\-debug\fR, \fB\-d\fR" 8
.IX Item "--debug, -d"
Print additional diagnostics to STDERR
.IP "\fB\-\-force\fR, \fB\-f\fR" 8
.IX Item "--force, -f"
Remove sessions if an error happened during their processing
.IP "\fB\-\-json\fR, \fB\-j\fR" 8
.IX Item "--json, -j"
Log execution stats as JSON instead of human\-readable text
.SH "SEE ALSO"
.IX Header "SEE ALSO"
<http://lemonldap\-ng.org/>
.SH AUTHORS
.IX Header "AUTHORS"
.IP "Xavier Guimard, <yadd@debian.org>" 4
.IX Item "Xavier Guimard, <yadd@debian.org>"
.SH "BUG REPORT"
.IX Header "BUG REPORT"
Use OW2 system to report bug or ask for features:
<https://gitlab.ow2.org/lemonldap\-ng/lemonldap\-ng/issues>
.SH DOWNLOAD
.IX Header "DOWNLOAD"
Lemonldap::NG is available at
<https://lemonldap\-ng.org/download>
.SH "COPYRIGHT AND LICENSE"
.IX Header "COPYRIGHT AND LICENSE"
.IP "Copyright (C) 2024 by Xavier Guimard, <yadd@debian.org>" 4
.IX Item "Copyright (C) 2024 by Xavier Guimard, <yadd@debian.org>"
.PP
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
.PP
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
.PP
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
