Changes between Initial Version and Version 3 of Ticket #36506


Ignore:
Timestamp:
Jul 14, 2025, 4:59:56 PM (7 weeks ago)
Author:
Efe Öge
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36506

    • Property Type UncategorizedBug
    • Property Owner set to Efe Öge
    • Property Status newassigned
  • Ticket #36506 – Description

    initial v3  
    11Hello,
    22
    3 We've been using Redis as the session storage for our cache backend. To clean up old sessions, we run the "python manage.py clearsessions" management command. This command internally calls the clear_expired method on the associated SessionStore. If clear_expired raises a NotImplementedError, the command catches it and raises a CommandError, indicating that the session backend doesn't support session cleanup. This behavior makes sense. https://github.com/django/django/blob/main/django/contrib/sessions/management/commands/clearsessions.py
     3We've been using Redis as cache backend for session storage. To clean up old sessions, we run the "python manage.py clearsessions" management command. This command internally calls the clear_expired method on the associated SessionStore. If clear_expired raises a NotImplementedError, the command catches it and raises a CommandError, indicating that the session backend doesn't support session cleanup. This behavior makes sense. https://github.com/django/django/blob/main/django/contrib/sessions/management/commands/clearsessions.py
    44
    55However, in the case of the cache backend, the clear_expired method is currently just an empty function. https://github.com/django/django/blob/main/django/contrib/sessions/backends/cache.py#L140
Back to Top