Automattic\WooCommerce\Database\Migrations\CustomOrderTable

CLIRunner::free_in_memory_usage()privateWC 1.0

Free some in-memory usage.

Метод класса: CLIRunner{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// private - только в коде основоного (родительского) класса
$result = $this->free_in_memory_usage();

Код CLIRunner::free_in_memory_usage() WC 9.7.1

private function free_in_memory_usage() {
	$GLOBALS['wpdb']->flush();
	$GLOBALS['wpdb']->queries = array(); // Query log.

	if ( function_exists( 'wp_cache_supports' ) && wp_cache_supports( 'flush_runtime' ) ) {
		wp_cache_flush_runtime();
	}
}