\x20\40\x20\40 HEX
HEX
Server: Apache
System: Linux web1.jenscom.net 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User: sps (1059)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/sps/www/wp-content/plugins/nextgen-gallery/src/WPCLI/Cache.php
<?php

namespace Imagely\NGG\WPCLI;

use Imagely\NGG\Util\Transient;

/**
 * WP-CLI Cache management commands for NextGEN Gallery.
 *
 * Provides cache-related WP-CLI commands for NextGEN Gallery.
 */
class Cache {

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