mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
Our recent fixes to using the system's configured memcached settings broke populate_db, because its hacky clear_database helper is called with a hacked-up settings module. We fix this by first moving this out-of-place code from models.py into populate_db, and then saving the settings required to access memcached so that we can use them in clear_database. We also fix a mypy erorr in flush-memcached that matches the same issue fixed in clear_database.