I’d usually clear the Redis cache from the WordPress dashboard, but in case I can’t access it, it can also be done from the command line:
1 |
redis–cli flushall |
I used this to resolve a strange wp-admin URL redirect loop after upgrading WordPress and rebooting the server (after apt dist-upgrade):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
pi@pad7–pios:~ $ wget th.cnx–software.com —2023–05–21 11:48:45— http://th.cnx-software.com/ Resolving th.cnx–software.com (th.cnx–software.com)... 104.21.91.125, 172.67.219.78, 2606:4700:3032::6815:5b7d, ... Connecting to th.cnx–software.com (th.cnx–software.com)|104.21.91.125|:80… connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://th.cnx-software.com/ [following] —2023–05–21 11:48:46— https://th.cnx-software.com/ Connecting to th.cnx–software.com (th.cnx–software.com)|104.21.91.125|:443… connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: ‘index.html.1’ index.html.1 [ <=> ] 152.19K 959KB/s in 0.2s 2023–05–21 11:48:46 (959 KB/s) – ‘index.html.1’ saved [155842] pi@pad7–pios:~ $ wget th.cnx–software.com/wp–admin —2023–05–21 11:48:51— http://th.cnx-software.com/wp-admin Resolving th.cnx–software.com (th.cnx–software.com)... 104.21.91.125, 172.67.219.78, 2606:4700:3032::6815:5b7d, ... Connecting to th.cnx–software.com (th.cnx–software.com)|104.21.91.125|:80… connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://th.cnx-software.com/wp-admin [following] —2023–05–21 11:48:51— https://th.cnx-software.com/wp-admin Connecting to th.cnx–software.com (th.cnx–software.com)|104.21.91.125|:443… connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://th.cnx-software.com/wp-admin/ [following] —2023–05–21 11:48:51— https://th.cnx-software.com/wp-admin/ Reusing existing connection to th.cnx–software.com:443. HTTP request sent, awaiting response... 302 Found Location: https://th.cnx-software.com/wp-admin/ [following] —2023–05–21 11:48:52— https://th.cnx-software.com/wp-admin/ Reusing existing connection to th.cnx–software.com:443. HTTP request sent, awaiting response... 302 Found Location: https://th.cnx-software.com/wp-admin/ [following] —2023–05–21 11:48:52— https://th.cnx-software.com/wp-admin/ Reusing existing connection to th.cnx–software.com:443. HTTP request sent, awaiting response... 302 Found Location: https://th.cnx-software.com/wp-admin/ [following] —2023–05–21 11:48:52— https://th.cnx-software.com/wp-admin/ Reusing existing connection to th.cnx–software.com:443. HTTP request sent, awaiting response... 302 Found Location: https://th.cnx-software.com/wp-admin/ [following] —2023–05–21 11:48:52— https://th.cnx-software.com/wp-admin/ Reusing existing connection to th.cnx–software.com:443. HTTP request sent, awaiting response... 302 Found |
Leave a Reply