Created
May 7, 2013 12:24
-
-
Save borkweb/5532175 to your computer and use it in GitHub Desktop.
Super basic memcache flush script to drop on my dev servers.
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 | |
$memcache = new Memcache; | |
$memcache->connect( 'localhost', 11211 ); | |
if ( $memcache->flush() ) { | |
echo 'BOOM! Flushed!<br>'; | |
} else { | |
echo 'Memcache Y U NO FLUSH?<br>'; | |
}//end else |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment