Automattic\WooCommerce\Internal\Caches

ProductTransientsDeferrer::handle_shutdown │ public │ WC 1.0

Handle the shutdown hook.

Flushes pending deletions if deferral was not explicitly stopped.

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

Хуков нет.

Возвращает

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

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

$ProductTransientsDeferrer = new ProductTransientsDeferrer();
$ProductTransientsDeferrer->handle_shutdown(): void;

Код ProductTransientsDeferrer::handle_shutdown() WC 11.2.2

public function handle_shutdown(): void {
	$this->deferral_level = 0;
	$this->flush();
}