Automattic\WooCommerce\Database\Migrations\CustomOrderTable
CLIRunner::free_in_memory_usage
Free some in-memory usage.
Метод класса: CLIRunner{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->free_in_memory_usage();
Код CLIRunner::free_in_memory_usage() CLIRunner::free in memory usage WC 10.5.0
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();
}
}