mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Rename command.
This commit is contained in:
@@ -338,12 +338,12 @@ Django does not provide automatic purging. Therefore, it's your job to
|
||||
purge expired sessions on a regular basis.
|
||||
|
||||
Django provides a sample clean-up script: ``django-admin.py
|
||||
cleanup``. That script deletes any session in the session table whose
|
||||
``expire_date`` is in the past.
|
||||
clearsessions``. That script deletes any session in the session table
|
||||
whose ``expire_date`` is in the past.
|
||||
|
||||
For example, you could setup a cron job to run this script every night::
|
||||
|
||||
0 0 * * * <modoboa_site>/manage.py cleanup
|
||||
#
|
||||
# Or like this if you use a virtual environment:
|
||||
# 0 0 * * * <virtualenv path/bin/python> <modoboa_site>/manage.py cleanup
|
||||
# 0 0 * * * <virtualenv path/bin/python> <modoboa_site>/manage.py clearsessions
|
||||
|
||||
Reference in New Issue
Block a user