File Manager

Current Path : /webspace/www.cordales.be/html/wp-content/plugins/nextgen-gallery/src/WPCLI/
Upload File :
Current File : //webspace/www.cordales.be/html/wp-content/plugins/nextgen-gallery/src/WPCLI/Cache.php

<?php

namespace Imagely\NGG\WPCLI;

use Imagely\NGG\Util\Transient;

class Cache {

	/**
	 * Flushes NextGen Gallery caches
	 *
	 * @param array $args
	 * @param array $assoc_args
	 * @synopsis [--expired]
	 */
	public function flush( $args, $assoc_args ) {
		$expired = ! empty( $assoc_args['expired'] ) ? true : false;
		Transient::flush( $expired );
		\WP_CLI::success( 'Flushed caches' );
	}
}

File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com