library/Garp/Cli/Command/Cache.php
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;
    }
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;
    }
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 ; }
Clear all the cache

@param array $args Tags.
@return bool
Clear all the cache