We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 775fc5e commit e5bfddfCopy full SHA for e5bfddf
1 file changed
bin/ghe-restore
@@ -207,6 +207,11 @@ ghe-ssh "$GHE_HOSTNAME" -- 'ghe-import-authorized-keys' < "$GHE_RESTORE_SNAPSHOT
207
echo "Restoring Elasticsearch indices ..."
208
ghe-restore-es-${GHE_BACKUP_STRATEGY} "$GHE_HOSTNAME" 1>&3
209
210
+# Restart an already running memcached to reset the cache after restore
211
+if [ "$GHE_VERSION_MAJOR" -ge 2 ]; then
212
+ ghe-ssh "$GHE_HOSTNAME" -- "sudo restart -q memcached 2>&1 || true"
213
+fi
214
+
215
# When restoring to a host that has already been configured, kick off a
216
# config run to perform data migrations.
217
if $instance_configured; then
0 commit comments