Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#32829 closed Cleanup/optimization (fixed)

clearsessions help text is incorrect

Reported by: Baptiste Mispelon Owned by: Hasan Ramezani
Component: contrib.sessions Version: 3.2
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The --help text for the clearsessions command states:

Can be run as a cronjob or directly to clean out expired sessions (only with the database backend at the moment).

But looking at the backends, several of them (not just the database one) implement the clear_expired() method used by that command.

I would suggest the following replacement:

Can be run as a cronjob or directly to clean out expired sessions when the backend supports it.

Change History (4)

comment:1 by Mariusz Felisiak, 3 years ago

Triage Stage: UnreviewedAccepted

Good catch, it's obsolete since 5fec97b9df6ea075483276de159e522a29437773.

comment:2 by Hasan Ramezani, 3 years ago

Has patch: set
Owner: changed from nobody to Hasan Ramezani
Status: newassigned

comment:3 by GitHub <noreply@…>, 3 years ago

Resolution: fixed
Status: assignedclosed

In ed3af3f:

Fixed #32829 -- Updated help text for clearsessions management command.

Obsolete since 5fec97b9df6ea075483276de159e522a29437773.

comment:4 by Baptiste Mispelon, 3 years ago

Thanks everyone!

Note: See TracTickets for help on using tickets.
Back to Top