#!/usr/bin/env php . */ define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); $shortoptions = 'd'; $longoptions = array('delete'); $helptext = << Flush the site with the given name from memcached. END_OF_FLUSHSITE_HELP; require_once INSTALLDIR.'/scripts/commandline.inc.php'; $nickname = common_config('site', 'nickname'); $sn = Status_network::memGet('nickname', $nickname); if (empty($sn)) { print "No such site.\n"; exit(-1); } print "Flushing cache for {$nickname}..."; $sn->decache(); print "OK.\n";