Skip to content

Commit c0bbd15

Browse files
Valyrian-Codeetj
authored andcommitted
Fix no-op memcached cache flush in restore.sh
The post-restore cleanup ran 'echo echo "flush_all" | nc ... memcached', which sends the literal string 'echo flush_all' to memcached. That is not a valid command, so memcached replies ERROR and the cache is never flushed. Drop the duplicated echo so the intended 'flush_all' command is sent.
1 parent e2c6309 commit c0bbd15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/geonode_project/br/restore.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ if md5sum -c /$BKP_FOLDER_NAME/$NEW_UUID/$BKP_FILE_NAME.md5; then
8989
echo "-----------------------------------------------------"
9090
echo " Cleanup memcached"
9191
echo "-----------------------------------------------------"
92-
echo echo "flush_all" | nc -q 1 memcached 11211
92+
echo "flush_all" | nc -q 1 memcached 11211
9393
echo "-----------------------------------------------------"
9494
echo "Cache cleanup done"
9595
echo "-----------------------------------------------------"

0 commit comments

Comments
 (0)