Last active
January 25, 2016 13:15
-
-
Save fliphess/d8a00b6056cf92e4da1f to your computer and use it in GitHub Desktop.
flush redis cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Pragma: no-cache'); | |
header('Cache-Control: private, no-cache, no-store, max-age=0, must-revalidate, proxy-revalidate'); | |
echo "Flushing redis cache\n"; | |
echo shell_exec('/usr/bin/redis-cli -n 0 "flushall"'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment