public function clear(array $args = array()) {
        $app = Zend_Registry::get('application');
        $bootstrap = $app->getBootstrap();
        $cacheDir = false;
        if ($bootstrap && $bootstrap->getResource('cachemanager')) {
            $cacheManager = $bootstrap->getResource('cachemanager');
            $cache = $cacheManager->getCache(Zend_Cache_Manager::PAGECACHE);
            $cacheDir = $cache->getBackend()->getOption('public_dir');
        }

        Garp_Cli::lineOut('Initialise cache clear');
        $messageBag = Garp_Cache_Manager::purge($args, true, $cacheDir);
        Garp_Cli::lineOut(implode("\n", $messageBag));
        return true;
    }