This website requires JavaScript.
Explore
Help
Sign In
Mirror
/
zulip
mirror of
https://github.com/zulip/zulip.git
Watch
1
Star
0
Fork
You've already forked zulip
0
Code
Issues
Projects
Releases
Wiki
Activity
b143d6ca6e
zulip
/
scripts
/
setup
/
flush-memcached
7 lines
96 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Add support for running OpenBSD in development environment.
2016-01-12 13:08:43 +01:00
#!/usr/bin/env bash
set -e
set -x
Flush memcached whenever we drop the databases. This fixes some issues that we've had where commands will fail is confusing ways after the database is rebuilt because data from before the database was dropped is still in the memcached cache.
2015-09-28 19:57:40 +02:00
# Flush memcached
Fix hanging nc and 'invalid wait time' error on Trusty. Apparently, 0 isn't a supported wait time value in some versions of nc.
2016-06-02 21:57:10 +02:00
echo 'flush_all' | nc -w 1 localhost 11211