Description
Current Situation
Currently cleanup tasks are handled automatically on WS disconnect. If a user defined time period has passed, then Django ReactPy will attempt to clean up all expired data.
Proposed Actions
Add configurability for cleanup behavior. For example, we might want the following settings that can enable/disable certain cleaning behaviors.
REACTPY_CLEAN_SESSIONS: bool
REACTPY_CLEAN_USER_DATA: bool
REACTPY_CLEAN_AUTH_SESSIONS: bool # Future feature, not yet relevant.
REACTPY_AUTO_CLEAN_INTERVAL: bool
And also a management command to forcibly perform a clean.
python manage.py reactpy_cleanup