boostorg / boostorg/website-v2
clearsessions cron
- Dominant language
- HTML
- Stars
- 18
- Forks
- 28
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 77
Description
Sessions are stored in the database. From the Django documentation:
"""
Django does not provide automatic purging of expired sessions. Therefore, it’s your job to purge expired sessions on a regular basis. Django provides a clean-up management command for this purpose: [clearsessions](https://docs.djangoproject.com/en/6.0/ref/django-admin/#django-admin-clearsessions). It’s recommended to call this command on a regular basis, for example as a daily cron job.
"""
Celery task. Once per week should be enough, rather than daily, the table is small.
command: ["python", "manage.py", "clearsessions"]
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.