File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,11 @@ ss_echo "${COLOR_INFO}Running ss-purge-memcached... ${COLOR_RESET}"
6464# ### D. SS-Purge-Memcached: Purge Memcached Via Flush_All And Memcflush ############################
6565# ###################################################################################################
6666
67- # # when a persistent object cache is installed in WordPress it retains all WP transients ##
68- # # therefore flushing Redis is similar to manually deleting WP transients in MySQL ##
67+ # # completely clears all cached objects stored in Memcached including WP transients ##
68+ # # persistent object cache entries are also flushed forcing fresh data retrieval ##
6969
70- echo flush_all > /dev/tcp/127.0.0.1/11211
71- memcflush --servers=127.0.0.1:11211 # # redundant
70+ echo " flush_all" | nc -q 2 127.0.0.1 11211 || echo " flush_all " > /dev/tcp/127.0.0.1/11211
71+ memcflush --servers=127.0.0.1:11211
7272
7373# ###################################################################################################
7474# ### SlickStack: Reset Permissions (SlickStack Scripts) ############################################
@@ -92,6 +92,7 @@ chmod 0700 /var/www/crons/custom/*cron* ## 0700 means only root/sudo can execute
9292# ### SlickStack: External References Used To Improve This Script (Thanks, Interwebz) ###############
9393# ###################################################################################################
9494
95+ # # Ref: ChatGPT
9596# # Ref: https://ma.ttias.be/flush-content-memcached-via-cli/
9697# # Ref: https://www.php.net/manual/en/memcached.flush.php
9798# # Ref: https://www.tutorialspoint.com/memcached/memcached_clear_data.htm
You can’t perform that action at this time.
0 commit comments