Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
run-dev: Clean up unnecessary memcached output, and document flush.
Tim Abbott47d513240cca
diff --git a/docs/subsystems/caching.md b/docs/subsystems/caching.mdindex 7299c2f2a8a..ccd1b40075a 100644--- a/docs/subsystems/caching.md+++ b/docs/subsystems/caching.md@@ -215,6 +215,13 @@ More full-stack test suites like `test-js-with-puppeteer` or `test-api`use a similar strategy (set a random `KEY_PREFIX` at the start of thetest run).+### Manual testing and memcached++Zulip's development environment will automatically flush (delete all+keys in) `memcached` when provisioning and when starting `run-dev.py`.+You can run the server with that behavior disabled using+`tools/run-dev.py --no-clear-memcached`.+### PerformanceOne thing be careful about with memcached queries is to avoid doingdiff --git a/tools/run-dev.py b/tools/run-dev.pyindex 5489d23b285..9875f5edf3a 100755--- a/tools/run-dev.py+++ b/tools/run-dev.py@@ -50,7 +50,7 @@ parser.add_argument('--interface',help='Set the IP or hostname for the proxy to listen on')parser.add_argument('--no-clear-memcached',action='store_false', dest='clear_memcached',- help='Do not clear memcached')+ help='Do not clear memcached on startup')parser.add_argument('--streamlined',action="store_true",help='Avoid thumbor, etc.')@@ -109,7 +109,6 @@ os.chdir(os.path.join(os.path.dirname(__file__), '..'))subprocess.check_call('./tools/clean-repo')if options.clear_memcached:- print("Clearing memcached ...")subprocess.check_call('./scripts/setup/flush-memcached')# Set up a new process group, so that we can later kill run{server,tornado}